Giter Site home page Giter Site logo

Comments (17)

sausax avatar sausax commented on July 21, 2024

Download DejaVuSans.ttf file from internet and put it in Dreambooth-Stable-Diffusion/data/DejaVuSans.ttf location

from dreambooth-stable-diffusion.

Maki9009 avatar Maki9009 commented on July 21, 2024

Download DejaVuSans.ttf file from internet and put it in Dreambooth-Stable-Diffusion/data/DejaVuSans.ttf location

can you explain to me why? plus my directory isn't like that

from dreambooth-stable-diffusion.

nikopueringer avatar nikopueringer commented on July 21, 2024

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.

Maki9009 avatar Maki9009 commented on July 21, 2024

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.

nikopueringer avatar nikopueringer commented on July 21, 2024

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.

Maki9009 avatar Maki9009 commented on July 21, 2024

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.

nikopueringer avatar nikopueringer commented on July 21, 2024

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.

Maki9009 avatar Maki9009 commented on July 21, 2024

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.

ExponentialML avatar ExponentialML commented on July 21, 2024

@Maki9009

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

trainer.test(model, data)

Just replace it with:

print("I don't want to test :-(")

Or

pass

from dreambooth-stable-diffusion.

Maki9009 avatar Maki9009 commented on July 21, 2024

@ExponentialML

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

trainer.test(model, data)

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.

ExponentialML avatar ExponentialML commented on July 21, 2024

@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 avatar Maki9009 commented on July 21, 2024

@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.

ExponentialML avatar ExponentialML commented on July 21, 2024

@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.

nikopueringer avatar nikopueringer commented on July 21, 2024

@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.

nikopueringer avatar nikopueringer commented on July 21, 2024

Oh, and show us your results!

from dreambooth-stable-diffusion.

Maki9009 avatar Maki9009 commented on July 21, 2024

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.

Maki9009 avatar Maki9009 commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.