Skip to content
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

Issues about size of model #258

Closed
1999kevin opened this issue Apr 7, 2021 · 7 comments
Closed

Issues about size of model #258

1999kevin opened this issue Apr 7, 2021 · 7 comments

Comments

@1999kevin
Copy link

I use the following command to train my model: python train.py --name myname --dataroot ./myroot/ --netG local --label_nc 0 --input_nc 5. It works for me and I can get a good model. However, it seems that the size of model is so large. It is 2.9GB. Is this case normal or I have done something wrong?

@1999kevin
Copy link
Author

My dataset contains photo with 1024*1024 pixels

@kex243
Copy link

kex243 commented Apr 13, 2021

Its okay, for example 756 to 512 to10 global blocks is 700mb, 512 to 512 to 13 global blocks is 1gb. If you want to decrease size for some reason (it will affect quality) you can decrease -n_blocks_global. Other parameters are not so heavy weighted.

@1999kevin
Copy link
Author

Its okay, for example 756 to 512 to10 global blocks is 700mb, 512 to 512 to 13 global blocks is 1gb. If you want to decrease size for some reason (it will affect quality) you can decrease -n_blocks_global. Other parameters are not so heavy weighted.

Got it. Thanks very much!

@alelordelo
Copy link

hi @1999kevin and @kex243, I didn't find the option -n_blocks_global on the train or base options. How can I use this function? What does it do?

Appreciate any inputs!

@1999kevin
Copy link
Author

@alelordelo hi, you can find this option at line 48 in base_options.py.
image

@alelordelo
Copy link

alelordelo commented May 4, 2021 via email

@1999kevin
Copy link
Author

no sure about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants