Skip to content

Commit

Permalink
update sample.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wl-zhao committed Feb 9, 2023
1 parent 19c3e67 commit 4588ff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions example/stable-diffusion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ UniPC can accelerate both the conditional and unconditional sampling by stable-d

```bash
CKPT=models/ldm/ffhq256/model.ckpt
python3 -m torch.distributed.launch --nproc_per_node=8 --master_port=$PORT scripts/sample_diffusion_ddp.py -r $CKPT \
python3 -m torch.distributed.launch --nproc_per_node=8 scripts/sample_diffusion_ddp.py -r $CKPT \
-n 50000 -l samples/ffhq/uni_pc -c 10 --uni_pc --batch_size 20

```
Expand All @@ -17,7 +17,6 @@ from ldm.models.diffusion.uni_pc import UniPCSampler

and use the UniPCSampler instead of the default DDIMSampler.


---

*Stable Diffusion was made possible thanks to a collaboration with [Stability AI](https://stability.ai/) and [Runway](https://runwayml.com/) and builds upon our previous work:*
Expand Down
2 changes: 1 addition & 1 deletion example/stable-diffusion/sample.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CKPT=models/ldm/ffhq256/model.ckpt
CUDA_VISIBLE_DEVICES=0,1 python3 -m torch.distributed.launch --nproc_per_node=2 --master_port=$PORT scripts/sample_diffusion_ddp.py -r $CKPT \
CUDA_VISIBLE_DEVICES=0,1 python3 -m torch.distributed.launch --nproc_per_node=2 scripts/sample_diffusion_ddp.py -r $CKPT \
-n 50000 -l samples/ffhq/uni_pc ${@:2} -c 10 --uni_pc --batch_size 20

0 comments on commit 4588ff8

Please sign in to comment.