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

Requirements not specified #16

Open
hno2lr-xcdx opened this issue Feb 6, 2023 · 3 comments
Open

Requirements not specified #16

hno2lr-xcdx opened this issue Feb 6, 2023 · 3 comments

Comments

@hno2lr-xcdx
Copy link

hno2lr-xcdx commented Feb 6, 2023

The readme contains information how to run the python scripts and the notebook.

  • for installing the scripts: Which requirements are needed?
  • hint: this Pull request is hinting to some requirements
  • Hardware/pypi packages?

I ran the scripts on a laptop with 4GB GPU size.
But:

Thanks in advance for a short feedback.

@onion-liu
Copy link
Owner

onion-liu commented Feb 7, 2023

The script style_transfer_folder.py requires more GPU memory than generate_image_pairs.py because it loads another model (PSPEncoder). Perhaps you need another GPU with more memory to run style_transfer_folder.py

You can also split style_transfer_folder.py into two steps:
Step 1: calculate sample_in with psp_encoder and save sample_in into a .npy file.
Step 2: generate img_out_ten from sample_in with the model g_ema to get the final result.

@hno2lr-xcdx
Copy link
Author

Ok, thanks for the feedback.

Is it possible to mitigate the problem by using a smaller version of the PSPEncoder model?

@onion-liu
Copy link
Owner

Yes. But you need to train the new version of the PSPEncoder by yourself.

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

2 participants