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

[Bug]: Newest Dreambooth throws exceptions regarding config.json in the tokenizer directory #6976

Open
1 task done
KiriKev opened this issue Jan 21, 2023 · 6 comments
Open
1 task done
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@KiriKev
Copy link

KiriKev commented Jan 21, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

I tried the new version of Dreambooth and at first received the error:
Repo id must use alphanumeric chars or '-', '', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96_
The path it was referring to was model/dreambooth/[modelname]/working/tokenizer'.'

So I created the folder "tokenizer" as it seemed it added that dot out of nowhere, which now leads to the following exception when trying to train my model:
Exception training model: '[..\models\dreambooth[modelname]\working\tokenizer does not appear to have a file named config.json. Checkout 'https://huggingface.co/[..\models\dreambooth\[modelname]\working\tokenizer/0' for available files.'.

What should I do to fix this issue?

Steps to reproduce the problem

  1. Create Model
  2. Set Checkpoint
  3. Set Intervals of training
  4. Learning Rate scheduler to constant, Learning Rate to 0,000001, Constant/Linear Starting Factor 1, Scale Position 1
  5. Set Sanity Sample prompt
  6. Check 8bit Adam
  7. Mixed Precision fp16 & Memory Attention to xformers
  8. Uncheck Cache Latents and Shuffle Tags
  9. Set Dataset directories
  10. Set Prompts
  11. Train

What should have happened?

It should usually just train my model and that's all.

Commit where the problem happens

889b851

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Brave

Command Line Arguments

None

Additional information, context and logs

None

@KiriKev KiriKev added the bug-report Report of a bug, yet to be confirmed label Jan 21, 2023
@quentinchiche
Copy link

same here ...

@andypotato
Copy link

Seems it tries to load the model from Huggingface hub, although the base model is on the local machine. Why is it trying to access Huggingface here?

@quentinchiche
Copy link

Any solutions ?

@ausstein
Copy link

ausstein commented Feb 7, 2023

Same Issue, did anyone find a solution?

@quentinchiche
Copy link

I change my stable diffusion directory, like C:\SD, it works like a charm now.

@ausstein
Copy link

ausstein commented Feb 7, 2023

much simpler problem on my side. I forgot to press the "create model" button, which in turn meant it tried to download some model from huggingface, which threw the error. on earlier versions of dreambooth pressing train before "create model" threw an error, now not anymore apparently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

4 participants