-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
--data flag is telling me its an invalid value because its a directory? #37
Comments
I also tried in the train.py file to change the line
back to stylegan3's original
but that gives me the error
This is pretty funny because one way its saying its an error because its a directory, and the other line is saying its not pointing at a directory? what is going on here? |
I only wanted to use this fork as it supports png's with transparent backgrounds. I just decided to dig into your code and change my augment.py, training_loop, and dataset_tool.py in the original stylegan3 gitclone to the changes you made to allow transparent backgrounds and all works perfectly. Am still unsure what is wrong with this git's code tho where it doesn't like the data directory? weird. |
Sorry, I hadn't seen this issue before. I'd like to fix the issue, but since the RGBA data I tested with worked fine, I think you can give me one or two samples of your data for me to test with so I can figure out exactly what's going on. As a first quick check: when running |
yeah .zip file works great, thanks for the suggestion i suppose i overlooked this step just assuming everything would be the same. Just another question do you ever plan on adding AUG_PROB to this repo? I am noticing augmentation leaks on lower datasets and have tried to remove colour augs will helps stabilizes it a lot, however, rotational augmentations when the augment becomes strong i find starts to leak into my dataset. I read that some other people implemented aug_prob in their code to avoid this as not every round will be trained with augmented images. I tried to implement this myself but after some testing I assume I failed due to training instability at around 800kmg+. I suppose I should add i attempted to do this by modifying the loss.py file where images are augmented, and would decide if a round would be augmented or not in the training loop and skip ada adjust if it was false ofc as well. I am a dev myself but am very new to gans and ML am wanting to outreach to others to learn how to better train my data to prevent aug leakage. if you have any suggestions that would be amazing Edit: after some more testing I noticed my code works for aug_prob but only when the augmentation is fixed and is showing very good results on my limited datasets (1-2k). Am not sure why it doesn't work for non fixed tho, i believe it has to do with the adjust function in the training_loop as this is ignored on aug fixed. |
With a low amount of data you usually see some leakage, so what you can do is either: transfer learn from another model (e.g. don't randomly initialize the networks but start from a good model at the resolution of your data like, Regarding the fixed prob working and not ADA, I think it's weird but maybe the logs in the tensorboard could tell you more (like it's not actually reacting/adapting and thus not approaching the target prob). My fix of only doing the augmentations in RGB (line 366 in Basically for Since you're starting in GANs, well these are hard to tune, so be prepared for lots of experiments, but you'll quickly know what to change later on when you get new data/try new models :) |
Describe the bug
When using my run command:
python train.py --outdir C:\Users\User\Documents\machinelearning\6\styleganfunresults --cfg=stylegan2 --data C:\Users\User\Documents\machinelearning\6\styleganfunganimages --gamma=1 --snap=3 --metrics=none --mbstd-group=20 --gpus=1 --batch=20
I get this error:
To Reproduce
I have 2k png images with transparent backgrounds and used the dataset_tool.py first with the below command.
python dataset_tool.py --source C:\Users\User\Documents\machinelearning\5\512croppedCopy --dest C:\Users\User\Documents\machinelearning\6\styleganfunganimages
then i tried to train on that data with
python train.py --outdir C:\Users\User\Documents\machinelearning\6\styleganfunresults --cfg=stylegan2 --data C:\Users\User\Documents\machinelearning\6\styleganfunganimages --gamma=1 --snap=3 --metrics=none --mbstd-group=20 --gpus=1 --batch=20
and received that above error?
Expected behavior
Obviously it should just accept that being a directory? not sure why it wouldn't be a directory? even the flags in the train.py file says it should be a directory
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: