Skip to content
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

Feat: stable-diffusion-v2 #2009

Merged
merged 9 commits into from
Jan 18, 2023
Merged

Conversation

jagadeeshi2i
Copy link
Collaborator

@jagadeeshi2i jagadeeshi2i commented Nov 28, 2022

Upgrade stable-diffusion model to v2

Signed-off-by: jagadeesh jagadeeshj@ideas2it.com

Description

Please read our CONTRIBUTING.md prior to creating your first pull request.

Please include a summary of the feature or issue being fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #(issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Feature/Issue validation/testing

Please describe the Unit or Integration tests that you ran to verify your changes and relevant result summary. Provide instructions so it can be reproduced.
Please also list any relevant details for your test configuration.

  • Test A
    Logs for Test A

  • Test B
    Logs for Test B

Checklist:

  • Did you have fun?
  • Have you added tests that prove your fix is effective or that this feature works?
  • Has code been commented, particularly in hard-to-understand areas?
  • Have you made corresponding changes to the documentation?

jagadeesh added 2 commits November 29, 2022 01:20
Signed-off-by: jagadeesh <jagadeeshj@ideas2it.com>
Signed-off-by: jagadeesh <jagadeeshj@ideas2it.com>
@codecov
Copy link

codecov bot commented Nov 30, 2022

Codecov Report

Merging #2009 (1e0e17d) into master (5cc8d0f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2009   +/-   ##
=======================================
  Coverage   53.38%   53.38%           
=======================================
  Files          71       71           
  Lines        3224     3224           
  Branches       56       56           
=======================================
  Hits         1721     1721           
  Misses       1503     1503           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jagadeeshi2i jagadeeshi2i changed the title [WIP] Feat: stable-diffusion-v2 Feat: stable-diffusion-v2 Dec 5, 2022
examples/diffusers/config.properties Outdated Show resolved Hide resolved
Signed-off-by: jagadeesh <jagadeeshj@ideas2it.com>
Copy link
Collaborator

@maaquib maaquib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ python Download_model.py
Fetching 12 files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 12/12 [00:00<00:00, 28055.55it/s]
The config attributes {'requires_safety_checker': False} were passed to StableDiffusionPipeline, but are not expected and will be ignored. Please verify your model_index.json configuration file.
The config attributes {'prediction_type': 'v_prediction', 'skip_prk_steps': True} were passed to DDIMScheduler, but are not expected and will be ignored. Please verify your scheduler_config.json configuration file.
Traceback (most recent call last):
  File "Download_model.py", line 6, in <module>
    pipeline = DiffusionPipeline.from_pretrained(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/diffusers/pipeline_utils.py", line 452, in from_pretrained
    if class_name.startswith("Flax"):
AttributeError: 'NoneType' object has no attribute 'startswith'

$ pip freeze | grep diffusers
diffusers==0.6.0

@jagadeeshi2i Can you also add pip install -r requirements.txt to the readme as a step

@agunapal agunapal self-requested a review January 18, 2023 00:39
@agunapal agunapal requested a review from maaquib January 18, 2023 00:40
@agunapal agunapal merged commit eced76d into pytorch:master Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants