Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stable-diffusion
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Qin, Jiuming
stable-diffusion
Commits
32a9661b
Commit
32a9661b
authored
3 years ago
by
Patrick Esser
Browse files
Options
Downloads
Patches
Plain Diff
add inpainting model
parent
17e64e32
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+15
-2
15 additions, 2 deletions
README.md
scripts/download_models.sh
+2
-5
2 additions, 5 deletions
scripts/download_models.sh
with
17 additions
and
7 deletions
README.md
+
15
−
2
View file @
32a9661b
...
...
@@ -70,10 +70,23 @@ We provide a first script for sampling from our unconditional models. Start it v
CUDA_VISIBLE_DEVICES=<GPU_ID> python scripts/sample_diffusion.py -r models/ldm/<model_spec>/model.ckpt -l <logdir> -n <\#samples> --batch_size <batch_size> -c <\#ddim steps> -e <\#eta>
```
## Coming Soon...
# Inpainting

Download the pre-trained weights
```
wget -O models/ldm/inpainting_big/last.ckpt https://heibox.uni-heidelberg.de/f/4d9ac7ea40c64582b7c9/?dl=1
```
and sample with
```
python scripts/inpaint.py --indir data/inpainting_examples/ --outdir outputs/inpainting_results
```
`indir`
should contain images
`*.png`
and masks
`<image_fname>_mask.png`
like
the examples provided in
`data/inpainting_examples`
.
## Coming Soon...
*
Code for training LDMs and the corresponding compression models.
*
Inference scripts for conditional LDMs for various conditioning modalities.
*
In the meantime, you can play with our colab notebook https://colab.research.google.com/drive/1xqzUi2iXQXDqXBHQGP9Mqt2YrYW6cx-J?usp=sharing
...
...
This diff is collapsed.
Click to expand it.
scripts/download_models.sh
+
2
−
5
View file @
32a9661b
...
...
@@ -8,7 +8,7 @@ wget -O models/ldm/cin256/model.zip https://ommer-lab.com/files/latent-diffusion
wget
-O
models/ldm/semantic_synthesis512/model.zip https://ommer-lab.com/files/latent-diffusion/semantic_synthesis.zip
wget
-O
models/ldm/bsr_sr/model.zip https://ommer-lab.com/files/latent-diffusion/sr_bsr.zip
wget
-O
models/ldm/layout2img-openimages256/model.zip https://ommer-lab.com/files/latent-diffusion/layout2img_model.zip
wget
-O
models/ldm/inpainting_big/
model.zip
#TODO @patrick add path
wget
-O
models/ldm/inpainting_big/
last.ckpt https://heibox.uni-heidelberg.de/f/4d9ac7ea40c64582b7c9/?dl
=
1
...
...
@@ -39,7 +39,4 @@ unzip -o model.zip
cd
../layout2img-openimages256
unzip
-o
model.zip
cd
../inpainting_big
unzip
-o
model.zip
cd
../..
\ No newline at end of file
cd
../..
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment