-
Notifications
You must be signed in to change notification settings - Fork 23
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
Error when changing batch size value #7
Comments
Thanks for your question! LeafGAN is based on CycleGAN and uses the default batch size of 1. I haven't tried to train my model with a bigger batch size yet but I think I will consider modifying the code for this. One possible solution for fixing this problem is to modify the Image Pooling (image buffer) mechanism in CycleGAN. (See the details in CycleGAN paper, section 4. Implementation - Training details) |
I have another question, @huuquan1994 and I don't want to raise another issue.
provided that I save my model by setting Also, at the end of the training, I receive the message: Thanks in advance, have a nice weekend! |
@Marco-Nguyen As I understood, the total training epochs when you train your model will be equal to The way CycleGAN update the learning rate is in this line of code here. When I resume training, I normally set the Hope this helps! I just found that I use the old version from the original CycleGAN repo (which has not so clear code meaning). I will update the code when I have time, but at the moment, it's no problem to use the current code. |
Excuse me, I am planning to try your LeafGAN model, and I am having a question about the batch size.
and I have not found the same problem.
I tried to increase the batch size to 32, 16, ... and every time it throws an error as below (when I use a batch size of 4):
This means I can only train with the default batch size (1), and it took quite a long time to train 1 epoch (for my dataset, it took 2477 seconds). That's quite time-consuming. Could you please answer my questions?
I will continue to search on the Internet for answers. Thank you in advance.
The text was updated successfully, but these errors were encountered: