Skip to content

various fixes to 01_stable_diffusion_introduction.ipynb - #88

Closed
yuxi-liu-wired wants to merge 1 commit into
huggingface:mainfrom
yuxi-liu-wired:main
Closed

yuxi-liu-wired wants to merge 1 commit into
huggingface:mainfrom
yuxi-liu-wired:main

Conversation

@yuxi-liu-wired

Copy link
Copy Markdown
  1. runwayml disappeared, so I changed the repo name.
  2. fixed some deprecation warnings.
  3. There is still one deprecation warning I don't know how to fix. IT is at
/opt/conda/lib/python3.10/site-packages/transformers/tokenization_utils_base.py:1614: FutureWarning: `clean_up_tokenization_spaces` was not set. It will be set to `True` by default. This behavior will be deprecated in transformers v4.45, and will be then set to `False` by default. For more details check this issue: https://github.com/huggingface/transformers/issues/31884
  warnings.warn(

which appears during

# Load the pipeline
model_id = "stabilityai/stable-diffusion-2-1-base"
pipe = StableDiffusionPipeline.from_pretrained(model_id).to(device)

Specifically, at loading pipeline components step 5, when loading the CLIP text encoder.

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@yuxi-liu-wired

Copy link
Copy Markdown
Author

Closing this one: it has gone stale. The model it switches to, stabilityai/stable-diffusion-2-inpainting, is no longer on the Hub, and neither are stable-diffusion-2-1-base and stable-diffusion-2-depth, which this notebook loads. Meanwhile runwayml/stable-diffusion-inpainting now redirects to stable-diffusion-v1-5/stable-diffusion-inpainting and loads fine. So the notebook needs moving off SD 2 altogether, which is a bigger change than this PR.

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.

1 participant