-
Notifications
You must be signed in to change notification settings - Fork 8
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
almost noise image generated #8
Comments
You probably haven't trained unet2 yet. You can just sample unet1 with
--sample_unet=1. You can train unet2 by specifying --train_unet=1 during
training.
…On Wed, Sep 7, 2022, 17:19 maty0505git ***@***.***> wrote:
After training for 100 epochs, I tried to infer with the following command
line.
!python imagen.py --imagen model.pth --tags "1girl, red_hair" --output red_hair.png
Then, the generated image of red_hair.png is as follows:
[image: red_hair]
<https://user-images.githubusercontent.com/23301778/189006602-371f168c-2b4d-4d99-b3c0-8bc20feabdc9.png>
So almost noise image!
Could you please tell me how to generate red_hair girl image?
—
Reply to this email directly, view it on GitHub
<#8>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQZQVCF3HTC7KUAEUOOAO2TV5EWHVANCNFSM6AAAAAAQHHG7U4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thank you.
|
--sample_unet is unnecessary during training. samples will always be produced by the unet under training. It's only used for sampling outside of training. Also, I made a typo with my first reply. Training unet2 you need --train_unet=2. So:
|
try lowering --cond_scale to 1.0 or 1.1. This will turn off prompt conditioning, but should give you an idea at the quality your model is capable of at the current training step. |
Looks like it needs more training. What does --sample_unet=1 look like? |
Thank you for your information.
Is there anything wrong with it? |
The command looks reasonable. How many images in your dataset? |
My dataset is the same as the holo dataset from you. |
Ahh. You'll need a lot more data. The smallest dataset I've trained has 18k images. You can try a tag combination closer to what you've trained with, but I would get more data. Maybe several thousand at least. gel_fetch has a "start_id" you can use to pull additional data. Set it to 1+. |
I tried to fetch images and texts using the following command line.
|
"holo2" tag won't probably have many images. But I think there should be
over a thousand for "holo"
…On Mon, Sep 12, 2022, 18:17 maty0505git ***@***.***> wrote:
I tried to fetch images and texts using the following command line.
But the result was "added 0 images".
python3 gel_fetch.py --tags "holo2" --txt holo2/tags --img holo2/imgs --danbooru --num 18000 --start_id 1
added 0 images
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQZQVCA7P7ZMRRHSDLJFZ7LV57I4DANCNFSM6AAAAAAQHHG7U4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I'm sorry I had a mistake.
But, the number of images I got was just 263. |
Keep going with start id 2 the 3 and so on until you stop getting images.
…On Mon, Sep 12, 2022, 18:35 maty0505git ***@***.***> wrote:
I'm sorry I had a mistake.
Then, I tried to fetch images and datas again as the following command
line.
python3 gel_fetch.py --tags "holo" --txt holo2/tags --img holo2/imgs --danbooru --num 18000 --start_id 1
But, the number of images I got was just 263.
Please tell me how to get images beyond 1000.
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQZQVCA43G4FCSHRNP2IVCTV57K77ANCNFSM6AAAAAAQHHG7U4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Both the following command lines fetched no images, with the message below.
|
Looks like you may have got all of Holo. You can try other tags. "red_hair" will probably get you a lot more. |
Then, please tell me all the tag names as holo, red_hair, .... |
There are thousands of tags. Here's some of the most popular: https://danbooru.donmai.us/tags?commit=Search&search%5Bhide_empty%5D=yes&search%5Border%5D=count |
Did you train unet1 as well? Usually, you need to train unet1 a lot and then train unet2. So something like:
then
|
Ahh, okay. I have a commit locally that supports nullunet. I'll push that now. |
I pushed. There's now a --null_unet1 argument for training and a --start_image for sampling. Sampling during training is not supported, so be sure to use --no_sample. For sampling I use:
|
You mean to use --no_sample instead of --start_image. |
--no_sample for training. For sampling (inference), --start_image |
Then, in your option '--start_image something_64px.png', what and why is something_64px.png? |
Using your new imagen.py, the following error message occurred.
|
You can just delete the line 647 and have a new try. |
After deleteing line 647, the following error message occurd.
|
Try to delete all those lines with errors until it can work. |
That's OK. |
You can pick any image you want as your start image. Just resize it to 64x64 (although, it'll probably work with something bigger if you have more memory). |
Hi, I have 2 error messanges.
That is no --start_image option. The second error is as follows:
|
You may need to update imagen-pytorch and pull deep-imagen again. |
No. It should get better with more training. Also try lowering
cond_scale. --cond_scale=1.0 for best quality (but almost no prompt
condition). 10 for best conditioning (but maybe worse quality).
…On Wed, Sep 7, 2022, 23:50 maty0505git ***@***.***> wrote:
Thanks!
BTW, this time the following image is generated.
[image: red_hair1]
<https://user-images.githubusercontent.com/23301778/189053802-2a26a6c0-bfc5-456f-9e96-ccddca2e4703.png>
It is like something meaningful, but it is very ambiguous.
Is this the limit?
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQZQVCHNNL3IXHFAHZCNJMDV5GEEJANCNFSM6AAAAAAQHHG7U4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
After training for 100 epochs, I tried to infer with the following command line.
Then, the generated image of red_hair.png is as follows:
So almost noise image!
Could you please tell me how to generate red_hair girl image?
The text was updated successfully, but these errors were encountered: