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

How to use your project for image inpaint training #41

Open
create-li opened this issue Jan 15, 2025 · 2 comments
Open

How to use your project for image inpaint training #41

create-li opened this issue Jan 15, 2025 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@create-li
Copy link

          Hi @mjz0110,

That depends on which model you would like to train:

  1. If you would like to pre-train an image inpainting model, then simply run the pre-training on a machine with several GPUs and set CUDA_VISIBLE_DEVICES environment variable to "comma separated list of GPU indices" . The pre-training script will automatically use data parallel training.
  2. If you would like to train a style transfer model, then unfortunately, there is currently no way to train it on multiple GPUs.

Originally posted by @usert5432 in #38 (comment)

@create-li
Copy link
Author

Hello, thank you for your outstanding contribution. How to train the inpaint model and which script and configuration to use in the project. However, your project only has image translation training scripts.

@usert5432
Copy link
Collaborator

Hello @create-li,

Thank you for your interest in our work. We provide the following scripts to train simple image masked image inpainting models:

scripts/afhq/pretrain_afhq.py
scripts/anime2selfie/pretrain_anime2selfie.py
scripts/celeba/pretrain_celeba.py
scripts/celeba_hq/pretrain_celebahq.py

We tried to describe how to run them here.

@usert5432 usert5432 self-assigned this Jan 15, 2025
@usert5432 usert5432 added the question Further information is requested label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants