-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add runtime requirements, gitignore, and fix typos #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
walkerxiu
wants to merge
75
commits into
nlile:main
Choose a base branch
from
walkerxiu:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
add7234
Add runtime requirements
lwneal f09f3ad
Add standard python gitignore with additions for IDEs and MacOS
kjerk d4e8234
Fix typo in ddpm.py
eltociear 41c0646
Fix typo
UdonDa d4763cf
Merge pull request #10 from lwneal/main
dmarx 4983241
Merge pull request #18 from kjerk/add-gitignore
dmarx d7440ac
Update README.md
hardmaru 64888bc
Update modelcard.md
hardmaru 2fc5104
Update modelcard.md
hardmaru ae721a6
Update README.md
hardmaru cc99e3a
Update README.md
hardmaru 1b7bee1
Update README.md
hardmaru 10d4a4a
Update README.md
hardmaru 6e92cda
* Force cast to fp32 to avoid atten layer overflow
Dango233 f547c4a
Merge pull request #64 from eltociear/patch-1
rromb 0611c60
Update README.md
hardmaru 773e941
Update README.md
hardmaru e0efa32
Update README.md
hardmaru f0eeb79
Update README.md
hardmaru c7d5eb9
Update README.md
hardmaru e1797ae
Add env var for resume previous behavior
Dango233 8bde0cf
Merge pull request #89 from Stability-AI/dango.patch.atten_overflow
rromb dab18ab
Merge pull request #90 from hardmaru/main
hardmaru c12d960
add details on precision for 2.1
rromb 99f1aae
Merge pull request #5 from Stability-AI/main
jamesthesnake d9ae297
Update README.md
jamesthesnake 18724c1
Fix image link
ModelEarth cd8f328
Merge pull request #100 from datascape/main
miao-ju 9718e11
Merge pull request #95 from jamesthesnake/main
miao-ju d55bcd4
Merge pull request #84 from UdonDa/patch-1
miao-ju 7ad54c5
add cpu support & add intel ipex optimizations
aalbersk 71e9042
add intel info to README
aalbersk 872cc9e
add info about ninstance and license
aalbersk 45287f9
stable unclip finetune
rromb 929625a
make it work
rromb aad6e38
fix missing adm_in_channels and ClipImageEmbedder
rromb 8ec7903
add noise-augmented unCLIP
rromb 639b3f3
make it work in sampling script
rromb 5ca0605
update for openclip release
rromb cddd65d
make it work
rromb d7980a2
add examples
rromb c81b231
no-ema in config, adapt noiseaugmtor
rromb 4b71f18
support dpm
rromb 3349693
adjust licenses and naming
aalbersk fc14884
Merge pull request #147 from aalbersk/intel_cpu_optimizations
dmarx edb2eb9
move unCLIP documentation to new .MD file
rromb fe1cf68
update examples for release
rromb 4e89f57
support image mixing in streamlit
rromb 89fdc12
increase default noise value for mixings
rromb 88553b6
readme
rromb e04300b
final ckpt links for unclip
rromb c25a9a8
Bump gradio from 3.11 to 3.13.2
dependabot[bot] 67fdc82
Merge pull request #207 from Stability-AI/dependabot/pip/gradio-3.13.2
rromb 0bbbcbb
Add files via upload
hardmaru ae978e6
Update modelcard.md
hardmaru e272fe6
Update README.md
hardmaru f2aa661
Update UNCLIP.MD
hardmaru 4e409af
Update UNCLIP.MD
hardmaru b4bdae9
add stable unclip
rromb afefb6b
Add diffusers integration
apolinario 6dd3048
Update README.md
apolinario be2861a
Small Hugging Face as two words nit
apolinario fa4401e
merge unclip into main
rromb 3cf0b08
merge readmes
rromb 3396b0f
Merge pull request #215 from Stability-AI/unclip_prerelease
rromb 06b5b40
Merge pull request #213 from apolinario/patch-2
rromb b7096e6
Update modelcard.md
hardmaru 21236e8
Update README.md
hardmaru a451cec
Update README.md
hardmaru 84d3c27
Update modelcard.md
hardmaru 8d95d19
Fix diffusers code snippet
apolinario 215046a
Merge pull request #216 from apolinario/patch-3
rromb b69cba5
Update modelcard.md
hardmaru 616d52d
Update modelcard.md
hardmaru cf1d67a
Update modelcard.md
hardmaru File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,165 @@ | ||
| # Generated by project | ||
| outputs/ | ||
|
|
||
| # Byte-compiled / optimized / DLL files | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
|
|
||
| # C extensions | ||
| *.so | ||
|
|
||
| # General MacOS | ||
| .DS_Store | ||
| .AppleDouble | ||
| .LSOverride | ||
|
|
||
| # Distribution / packaging | ||
| .Python | ||
| build/ | ||
| develop-eggs/ | ||
| dist/ | ||
| downloads/ | ||
| eggs/ | ||
| .eggs/ | ||
| lib/ | ||
| lib64/ | ||
| parts/ | ||
| sdist/ | ||
| var/ | ||
| wheels/ | ||
| share/python-wheels/ | ||
| *.egg-info/ | ||
| .installed.cfg | ||
| *.egg | ||
| MANIFEST | ||
|
|
||
| # PyInstaller | ||
| # Usually these files are written by a python script from a template | ||
| # before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
| *.manifest | ||
| *.spec | ||
|
|
||
| # Installer logs | ||
| pip-log.txt | ||
| pip-delete-this-directory.txt | ||
|
|
||
| # Unit test / coverage reports | ||
| htmlcov/ | ||
| .tox/ | ||
| .nox/ | ||
| .coverage | ||
| .coverage.* | ||
| .cache | ||
| nosetests.xml | ||
| coverage.xml | ||
| *.cover | ||
| *.py,cover | ||
| .hypothesis/ | ||
| .pytest_cache/ | ||
| cover/ | ||
|
|
||
| # Translations | ||
| *.mo | ||
| *.pot | ||
|
|
||
| # Django stuff: | ||
| *.log | ||
| local_settings.py | ||
| db.sqlite3 | ||
| db.sqlite3-journal | ||
|
|
||
| # Flask stuff: | ||
| instance/ | ||
| .webassets-cache | ||
|
|
||
| # Scrapy stuff: | ||
| .scrapy | ||
|
|
||
| # Sphinx documentation | ||
| docs/_build/ | ||
|
|
||
| # PyBuilder | ||
| .pybuilder/ | ||
| target/ | ||
|
|
||
| # Jupyter Notebook | ||
| .ipynb_checkpoints | ||
|
|
||
| # IPython | ||
| profile_default/ | ||
| ipython_config.py | ||
|
|
||
| # pyenv | ||
| # For a library or package, you might want to ignore these files since the code is | ||
| # intended to run in multiple environments; otherwise, check them in: | ||
| # .python-version | ||
|
|
||
| # pipenv | ||
| # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
| # However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
| # having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
| # install all needed dependencies. | ||
| #Pipfile.lock | ||
|
|
||
| # poetry | ||
| # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. | ||
| # This is especially recommended for binary packages to ensure reproducibility, and is more | ||
| # commonly ignored for libraries. | ||
| # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control | ||
| #poetry.lock | ||
|
|
||
| # pdm | ||
| # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. | ||
| #pdm.lock | ||
| # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it | ||
| # in version control. | ||
| # https://pdm.fming.dev/#use-with-ide | ||
| .pdm.toml | ||
|
|
||
| # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm | ||
| __pypackages__/ | ||
|
|
||
| # Celery stuff | ||
| celerybeat-schedule | ||
| celerybeat.pid | ||
|
|
||
| # SageMath parsed files | ||
| *.sage.py | ||
|
|
||
| # Environments | ||
| .env | ||
| .venv | ||
| env/ | ||
| venv/ | ||
| ENV/ | ||
| env.bak/ | ||
| venv.bak/ | ||
|
|
||
| # Spyder project settings | ||
| .spyderproject | ||
| .spyproject | ||
|
|
||
| # Rope project settings | ||
| .ropeproject | ||
|
|
||
| # mkdocs documentation | ||
| /site | ||
|
|
||
| # mypy | ||
| .mypy_cache/ | ||
| .dmypy.json | ||
| dmypy.json | ||
|
|
||
| # Pyre type checker | ||
| .pyre/ | ||
|
|
||
| # pytype static type analyzer | ||
| .pytype/ | ||
|
|
||
| # Cython debug symbols | ||
| cython_debug/ | ||
|
|
||
| # IDEs | ||
| .idea/ | ||
| .vscode/ |
This file contains hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 @@ | ||
| Put unCLIP checkpoints here. |
This file contains hidden or 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,37 @@ | ||
| model: | ||
| type: t2i-decoder | ||
| diffusion_sampler: uniform | ||
| hparams: | ||
| image_size: 64 | ||
| num_channels: 320 | ||
| num_res_blocks: 3 | ||
| channel_mult: '' | ||
| attention_resolutions: 32,16,8 | ||
| num_heads: -1 | ||
| num_head_channels: 64 | ||
| num_heads_upsample: -1 | ||
| use_scale_shift_norm: true | ||
| dropout: 0.1 | ||
| clip_dim: 768 | ||
| clip_emb_mult: 4 | ||
| text_ctx: 77 | ||
| xf_width: 1536 | ||
| xf_layers: 0 | ||
| xf_heads: 0 | ||
| xf_final_ln: false | ||
| resblock_updown: true | ||
| learn_sigma: true | ||
| text_drop: 0.3 | ||
| clip_emb_type: image | ||
| clip_emb_drop: 0.1 | ||
| use_plm: true | ||
|
|
||
| diffusion: | ||
| steps: 1000 | ||
| learn_sigma: true | ||
| sigma_small: false | ||
| noise_schedule: squaredcos_cap_v2 | ||
| use_kl: false | ||
| predict_xstart: false | ||
| rescale_learned_sigmas: true | ||
| timestep_respacing: '' | ||
This file contains hidden or 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,27 @@ | ||
| model: | ||
| type: improved_sr_64_256 | ||
| diffusion_sampler: uniform | ||
| hparams: | ||
| channels: 320 | ||
| depth: 3 | ||
| channels_multiple: | ||
| - 1 | ||
| - 2 | ||
| - 3 | ||
| - 4 | ||
| dropout: 0.0 | ||
|
|
||
| diffusion: | ||
| steps: 1000 | ||
| learn_sigma: false | ||
| sigma_small: true | ||
| noise_schedule: squaredcos_cap_v2 | ||
| use_kl: false | ||
| predict_xstart: false | ||
| rescale_learned_sigmas: true | ||
| timestep_respacing: '7' | ||
|
|
||
|
|
||
| sampling: | ||
| timestep_respacing: '7' # fix | ||
| clip_denoise: true |
This file contains hidden or 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,21 @@ | ||
| model: | ||
| type: prior | ||
| diffusion_sampler: uniform | ||
| hparams: | ||
| text_ctx: 77 | ||
| xf_width: 2048 | ||
| xf_layers: 20 | ||
| xf_heads: 32 | ||
| xf_final_ln: true | ||
| text_drop: 0.2 | ||
| clip_dim: 768 | ||
|
|
||
| diffusion: | ||
| steps: 1000 | ||
| learn_sigma: false | ||
| sigma_small: true | ||
| noise_schedule: squaredcos_cap_v2 | ||
| use_kl: false | ||
| predict_xstart: true | ||
| rescale_learned_sigmas: false | ||
| timestep_respacing: '' |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
channel_multshould be a list, not an empty string.The
channel_multparameter is set to an empty string, but UNet architectures expect a list of integer multipliers (e.g.,[1, 2, 4, 4]as seen in the Stable Diffusion configs). This will cause a runtime error when the model attempts to iterate over channel multipliers during initialization.🔧 Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents