forked from mindspore-lab/minddiffusion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update wukong-huahua inpaint (mindspore-lab#54)
* update inpaint * update download path
- Loading branch information
1 parent
68ccf23
commit a3cb11a
Showing
9 changed files
with
524 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
vision/wukong-huahua/configs/wukong-huahua_inpaint_inference.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
model: | ||
target: ldm.models.diffusion.ddpm.LatentInpaintDiffusion | ||
params: | ||
linear_start: 0.00085 | ||
linear_end: 0.0120 | ||
num_timesteps_cond: 1 | ||
log_every_t: 200 | ||
timesteps: 1000 | ||
first_stage_key: "image" | ||
cond_stage_key: "caption" | ||
image_size: 64 | ||
channels: 4 | ||
cond_stage_trainable: false # Note: different from the one we trained before | ||
conditioning_key: hybrid # important | ||
monitor: val/loss_simple_ema | ||
scale_factor: 0.18215 | ||
finetune_keys: null | ||
use_ema: false | ||
|
||
unet_config: | ||
target: ldm.modules.diffusionmodules.openaimodel.UNetModel | ||
params: | ||
image_size: 64 # unused | ||
in_channels: 9 # 4 data + 4 downscaled image + 1 mask | ||
out_channels: 4 | ||
model_channels: 320 | ||
attention_resolutions: [ 4, 2, 1 ] | ||
num_res_blocks: 2 | ||
channel_mult: [ 1, 2, 4, 4 ] | ||
num_heads: 8 | ||
use_spatial_transformer: true | ||
transformer_depth: 1 | ||
context_dim: 768 | ||
use_checkpoint: true | ||
legacy: false | ||
use_fp16: True | ||
|
||
first_stage_config: | ||
target: ldm.models.autoencoder.AutoencoderKL | ||
params: | ||
embed_dim: 4 | ||
monitor: val/rec_loss | ||
use_fp16: True | ||
ddconfig: | ||
double_z: true | ||
z_channels: 4 | ||
resolution: 512 | ||
in_channels: 3 | ||
out_ch: 3 | ||
ch: 128 | ||
ch_mult: | ||
- 1 | ||
- 2 | ||
- 4 | ||
- 4 | ||
num_res_blocks: 2 | ||
attn_resolutions: [] | ||
dropout: 0.0 | ||
|
||
cond_stage_config: | ||
target: ldm.modules.encoders.modules.FrozenCLIPEmbedder_ZH | ||
params: | ||
use_fp16: True |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.8 KB
vision/wukong-huahua/demo/inpaint/overture-creations-5sI6fQgYIuo_mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.