question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Custom Models] Can't load dreambooth models with new scheduling config method and DPMSolver

See original GitHub issue

Describe the bug

I can’t load DPMSolver, for example, with the new method to define schedulers from config, cause apparently, most these dreambooth models don’t have a config for the schedulers. What do we do in this instance then?

OSError: nitrosocke/redshift-diffusion does not appear to have a file named scheduler_config.json.

Reproduction

Load DPMSolver with Dreambooth model like nitrosocke/redshift-diffusion and pass the pipe.scheduler.config to it.

Logs

~\AppData\Roaming\Python\Python39\site-packages\diffusers\configuration_utils.py in from_config(cls, config, return_unused_kwargs, **kwargs)
    194                 )
    195             deprecate("config-passed-as-path", "1.0.0", deprecation_message, standard_warn=False)
--> 196             config, kwargs = cls.load_config(pretrained_model_name_or_path=config, return_unused_kwargs=True, **kwargs)
    197 
    198         init_dict, unused_kwargs, hidden_dict = cls.extract_init_dict(config, **kwargs)

~\AppData\Roaming\Python\Python39\site-packages\diffusers\configuration_utils.py in load_config(cls, pretrained_model_name_or_path, return_unused_kwargs, **kwargs)
    352                 )
    353             except EntryNotFoundError:
--> 354                 raise EnvironmentError(
    355                     f"{pretrained_model_name_or_path} does not appear to have a file named {cls.config_name}."
    356                 )

OSError: nitrosocke/redshift-diffusion does not appear to have a file named scheduler_config.json.

System Info

diffusers-cli env doesn’t seem to work when installed with Conda (this is a fresh install of diffusers as of this morning with conda install method)

diffusers-cli is not recognized as an internal or external command,
operable program or batch file.

Guess that’s yet another bug.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
anton-lcommented, Dec 14, 2022

diffusers-cli env doesn’t seem to work when installed with Conda

pinging our conda contributor @sugatoray for a way to enable CLI commands in conda packages 😃

1reaction
averadcommented, Dec 12, 2022

@WASasquatch what would you suggest 🤗 change to correct the reported issue? Were you able to hack together a workaround?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Custom Models] Can't load dreambooth models with new ...
I can't load DPMSolver, for example, with the new method to define schedulers from config, cause apparently, most these dreambooth models don't ......
Read more >
DreamBooth fine-tuning example - Hugging Face
DreamBooth fine-tuning example. DreamBooth is a method to personalize text-to-image models like stable diffusion given just a few (3~5) images of a subject....
Read more >
Releases · huggingface/diffusers - GitHub
Diffusers: State-of-the-art diffusion models for image and audio ... To change the custom pipeline version, set the custom_revision variable like so:.
Read more >
Stable Diffusion Tutorial Part 1: Run Dreambooth in Gradient ...
This new method allows users to input a few images, ... Note: You will need at least 16 GB of GPU RAM to...
Read more >
New (simple) Dreambooth method is out, train under 10 ...
New (simple) Dreambooth method is out, train under 10 minutes without class images on multiple subjects, retrainable-ish model · 1- Prepare 30 ( ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found