mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[Diffusion] Add StableDiffusionInpaint pipeline (#760)
* Update Inpaint pipeline * Update concat * Add GaussianRandomKernel * Update GaussianRandom * Add vae endoder * Add unet infer * Add vae decoder predict * add PrepareMaskAndMaskedImage * Add imwrite * Add time counter * Fix pipeline * use FDTensor move * Fix scaled_linear dpm solver * Add RGB2BGR
This commit is contained in:
@@ -54,6 +54,8 @@ class DPMSolverMultistepScheduler : public Scheduler {
|
||||
const std::vector<FDTensor>& timesteps = {}) override;
|
||||
void AddNoise(const FDTensor& original_samples, const FDTensor& noise,
|
||||
const FDTensor& timesteps, FDTensor* out) override;
|
||||
float InitNoiseSigma() override;
|
||||
FDTensor GetTimesteps() override;
|
||||
struct Config {
|
||||
int num_train_timesteps_;
|
||||
float beta_start_;
|
||||
|
||||
Reference in New Issue
Block a user