diffusion-models-class icon indicating copy to clipboard operation
diffusion-models-class copied to clipboard

various fixes to `01_stable_diffusion_introduction.ipynb`

Open yuxi-liu-wired opened this issue 1 year ago • 1 comments

  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.

yuxi-liu-wired avatar Sep 08 '24 00:09 yuxi-liu-wired

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB