Skip to content

Commit

Permalink
add dpm-solver (mindspore-lab#28)
Browse files Browse the repository at this point in the history
* add dpm-solver

add dpm-solver

* add dpm-solver

add dpm-solver

* add dpm-solver

add dpm-solver
  • Loading branch information
LiangjunFeng authored Dec 28, 2022
1 parent 4a647e6 commit 9e09445
Show file tree
Hide file tree
Showing 5 changed files with 1,268 additions and 12 deletions.
13 changes: 3 additions & 10 deletions vision/wukong-huahua/infer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,7 @@
export GLOG_v=3
export ASCEND_GLOBAL_LOG_LEVEL=3
export ASCEND_SLOG_PRINT_TO_STDOUT=0
export DEVICE_ID=0

python txt2img.py \
--prompt "来自深渊 风景 绘画 写实风格" \
--config configs/v1-inference-chinese.yaml \
--output_path ./output/ \
--seed 42 \
--n_iter 4 \
--n_samples 8 \
--W 512 \
--H 512 \
--ddim_steps 50
python txt2img.py --prompt "来自深渊 风景 绘画 写实风格" --config configs/v1-inference-chinese.yaml --output_path ./output/ --seed 42 --dpm_solver --n_iter 4 --n_samples 4 --W 512 --H 512 --ddim_steps 15
#python txt2img.py --prompt "来自深渊 风景 绘画 写实风格" --config configs/v1-inference-chinese.yaml --output_path ./output/ --seed 42 --n_iter 4 --n_samples 4 --W 512 --H 512 --ddim_steps 30
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .sampler import DPMSolverSampler
Loading

0 comments on commit 9e09445

Please sign in to comment.