Config not found (local installation)
See original GitHub issueI am trying to get a local installation working but I am stuck when training:
File "/opt/conda/lib/python3.7/site-packages/transformers/configuration_utils.py", line 604, in _get_config_dict
user_agent=user_agent,
File "/opt/conda/lib/python3.7/site-packages/transformers/utils/hub.py", line 297, in cached_path
raise EnvironmentError(f"file {url_or_filename} not found")
OSError: file /content/stable-diffusion-v1-5/config.json not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/content/diffusers/examples/dreambooth/train_dreambooth.py", line 694, in <module>
main()
File "/content/diffusers/examples/dreambooth/train_dreambooth.py", line 442, in main
text_encoder = CLIPTextModel.from_pretrained(args.pretrained_model_name_or_path, subfolder="text_encoder")
File "/opt/conda/lib/python3.7/site-packages/transformers/modeling_utils.py", line 1595, in from_pretrained
**kwargs,
File "/opt/conda/lib/python3.7/site-packages/transformers/models/clip/configuration_clip.py", line 126, in from_pretrained
config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/transformers/configuration_utils.py", line 548, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/transformers/configuration_utils.py", line 637, in _get_config_dict
f"Can't load config for '{pretrained_model_name_or_path}'. If you were trying to load it from "
OSError: Can't load config for '/content/stable-diffusion-v1-5'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure '/content/stable-diffusion-v1-5' is the correct path to a directory containing a config.json file
I am pretty sure I have the correct folder setup. I double-checked with colab settings…
Where is that config.json
supposed to be? I cant find it in a colab environment either…
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
RuntimeError: local configuration file not found · Issue #576
When I use the order to do something like "west init", an error is showed: "RuntimeError: local configuration file not found". The os...
Read more >node.js - How do you fix npm WARN config global `--global ...
My solution to solve this problem: Go to C:\Program Files\nodejs. Edit 4 files named npm, npm.cmd, npx, npx.cmd. Open files in VS Code....
Read more >How to fix a "Command not found" error in Linux - Red Hat
Learn five ways to deal with a "Command not found" error, Linux users. ... A local variable exists only within a specific shell....
Read more >config | npm Docs
Default: In global mode, the folder where the node executable is installed. Otherwise, the nearest parent folder containing either a package.json file or...
Read more >Installing the CircleCI local CLI
This command may prompt you for sudo if your user does not have write permissions to the install directory, /usr/local/bin . Configuring the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok fixed by running
pip install "transformers==4.21.0" --no-deps
That command should be run here?:
(base) C:\Users\ZeroCool22\Desktop\Ben\fast-stable-diffusion>pip install "transformers==4.21.0" --no-deps