Comments (17)
Download DejaVuSans.ttf
file from internet and put it in Dreambooth-Stable-Diffusion/data/DejaVuSans.ttf
location
from dreambooth-stable-diffusion.
Download
DejaVuSans.ttf
file from internet and put it inDreambooth-Stable-Diffusion/data/DejaVuSans.ttf
location
can you explain to me why? plus my directory isn't like that
from dreambooth-stable-diffusion.
You’ll have to make the folder if it doesn’t exist.
the reason you’re doing this is because the program needs the font when generating text on some of the sample pictures, and the missing file causes an error.
from dreambooth-stable-diffusion.
You’ll have to make the folder if it doesn’t exist.
the reason you’re doing this is because the program needs the font when generating text on some of the sample pictures, and the missing file causes an error.
alright, thanks... i did the training. i tried to run it on but it wouldn't load it on Hlky repo, id ends up with ^C. have you tried to use the new checkpoint on any other repo or locally to generate images, or did you generate them in dream booth also?
from dreambooth-stable-diffusion.
I moved my model into hlky. Should work fine. “^C” is the keyboard command ctrl+c, which is interrupt command for Linux/python. You’re probably pasting something weird in the command line?
from dreambooth-stable-diffusion.
I moved my model into hlky. Should work fine. “^C” is the keyboard command ctrl+c, which is interrupt command for Linux/python. You’re probably pasting something weird in the command line?
I didn't really change anything, I just gave it the location of the new model. but it was the model that crashed cuz of the OS error. So I've decided to retain now. ur samples are really good? could I know how many regularization images did you use? how many images of yourself did you use?
from dreambooth-stable-diffusion.
I used about 12 photos for regularization (I used “man” as my prompt and generated 12 512x512 images), and I used about the same amount of photos of me, in various lighting conditions, angles, and expressions. I also used “man” as the class that I trained to. Currently doing a test with 100 regularization images.
I trained 4000 iterations (finetune unfrozen .yaml file is what you need to edit to train more than 800 iterations). Look at the end of the file for global iteration cutoff threshold.
from dreambooth-stable-diffusion.
I used about 12 photos for regularization (I used “man” as my prompt and generated 12 512x512 images), and I used about the same amount of photos of me, in various lighting conditions, angles, and expressions. I also used “man” as the class that I trained to. Currently doing a test with 100 regularization images.
I trained 4000 iterations (finetune unfrozen .yaml file is what you need to edit to train more than 800 iterations). Look at the end of the file for global iteration cutoff threshold.
Well it stopped training again
Average Peak memory 29986.93MiB
Epoch 2: 56%|▌| 180/322 [03:02<02:24, 1.01s/it, loss=0.358, v_num=0, train/los
Traceback (most recent call last):
File "main.py", line 835, in
trainer.test(model, data)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 938, in test
return self._call_and_handle_interrupt(self._test_impl, model, dataloaders, ckpt_path, verbose, datamodule)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 721, in _call_and_handle_interrupt
return self.strategy.launcher.launch(trainer_fn, *args, trainer=self, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/strategies/launchers/subprocess_script.py", line 93, in launch
return function(*args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 985, in _test_impl
results = self._run(model, ckpt_path=self.ckpt_path)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1160, in _run
verify_loop_configurations(self)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/configuration_validator.py", line 46, in verify_loop_configurations
__verify_eval_loop_configuration(trainer, model, "test")
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/configuration_validator.py", line 197, in __verify_eval_loop_configuration
raise MisconfigurationException(f"No {loader_name}()
method defined to run Trainer.{trainer_method}
.")
pytorch_lightning.utilities.exceptions.MisconfigurationException: No test_dataloader()
method defined to run Trainer.test
.
IDK if it is finished... or if it's an error. Also for your really good results, you trained for 4000 iterations? how long did that take? im currently using A100
from dreambooth-stable-diffusion.
If you want to train for a longer period of time, you can just replace trainer.test(model, data)
. Either that or you can use a boolean with argparse, or just pass the check.
The error happens at line
Dreambooth-Stable-Diffusion/main.py
Line 835 in bb8f4f2
Just replace it with:
print("I don't want to test :-(")
Or
pass
from dreambooth-stable-diffusion.
If you want to train for a longer period of time, you can just replace
trainer.test(model, data)
. Either that or you can use a boolean with argparse, or just pass the check.The error happens at line
Dreambooth-Stable-Diffusion/main.py
Line 835 in bb8f4f2
Just replace it with:
print("I don't want to test :-(")Or
pass
so technically it finished training? cuz it was still set at 800iter... now I'm doing 2000 currently. would I still get the same error? cuz I haven't changed this yet?
from dreambooth-stable-diffusion.
@Maki9009 Yes it still technically finished training. Removing this test option allows it to train for longer (not the option itself, it's a bug that's missing some params in this repo, but you can possibly overfit what you're trying to train.
from dreambooth-stable-diffusion.
@Maki9009 Yes it still technically finished training. Removing this test option allows it to train for longer (not the option itself, it's a bug that's missing some params in this repo, but you can possibly overfit what you're trying to train.
i finished training... but i have two .ckpt files one is called "last.ckpt" and the other is called "epoch=000001.ckpt" idk which ones the im supposed to use. And if i was to apply it to hlky all i need to do is point the repo to the model right nothing else?
from dreambooth-stable-diffusion.
@Maki9009 Yes it still technically finished training. Removing this test option allows it to train for longer (not the option itself, it's a bug that's missing some params in this repo, but you can possibly overfit what you're trying to train.
i finished training... but i have two .ckpt files one is called "last.ckpt" and the other is called "epoch=000001.ckpt" idk which ones the im supposed to use. And if i was to apply it to hlky all i need to do is point the repo to the model right nothing else?
The epoch
file is a save point at epoch number 000001
, and the last.ckpt
is the latest model that saved when training was finished. A use case is if you feel that last.ckpt
has too much training, you can fall back to one of the epoch checkpoints. Either one is fine, but last.ckpt
will probably have less editability but more identity preservation. It's your call on which one is best for you.
from dreambooth-stable-diffusion.
@Maki9009 Yes it still technically finished training. Removing this test option allows it to train for longer (not the option itself, it's a bug that's missing some params in this repo, but you can possibly overfit what you're trying to train.
i finished training... but i have two .ckpt files one is called "last.ckpt" and the other is called "epoch=000001.ckpt" idk which ones the im supposed to use. And if i was to apply it to hlky all i need to do is point the repo to the model right nothing else?
Use latest.ckpt for the fully trained model. And yes, you can just point hlky at the model, or name it “model.ckpt” and replace the current model.ckpt you’re using
from dreambooth-stable-diffusion.
Oh, and show us your results!
from dreambooth-stable-diffusion.
Oh, and show us your results!
the training samples or meh, but I kinda expected that since. my reg images or from clip front..which I've been told is not the best method. I'm trying to get it run on free colab currently.. but it requires more Ram. it can't load up the full model. so ill try locally in a bit and hope the results look nice enough. or hope it even runs.
from dreambooth-stable-diffusion.
also, Emad said in the discord chat, that they'll be releasing guides this week so HOPEFULLY. IT HAS SOME TROUBLESHOOTING FOR THIS. because I'm basically setting Google servers and runpods servers on fire.
from dreambooth-stable-diffusion.
Related Issues (20)
- Interface changed for add_argparse_args() of lightning.Trainer HOT 1
- RuntimeError HOT 4
- AttributeError: module 'torch.linalg' has no attribute 'solve'
- Is there any method for loop t-step denoising to restore images and parallel speed up in stable diffusion?
- .
- This repo has many problem on windows
- cuda out of memory on RTX 24gb 3090 HOT 4
- ERROR: Failed building wheel for dlib
- Nothing Habben when Traning
- How to use DreamBooth for unconditional image synthesis.
- Questions about parameters
- ERROR: huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name':
- Implementation of metrics in the Dreambooth paper
- RuntimeError: Error(s) in loading state_dict for LatentDiffusion: size mismatch
- Unable to train Dreambooth on Mac M1
- Dreambooth training with image captions HOT 1
- Size of the trained checkpoint (ckpt) file HOT 1
- Support for inpainting training for dreambooth?
- TypeError: __init__() missing 1 required positional argument: 'personalization_config' HOT 2
- 支持多GPU训练吗 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dreambooth-stable-diffusion.