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

Image to Image translation like pix2pix #158

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

iamrishab
Copy link

@iamrishab iamrishab commented Dec 28, 2021

Paired image to image translation tasks as in pix2pixHD (domain A -> domain B with paired images of the same name), Over in the SPADE repo the same question was asked multiple times, however, with no answer yet:

NVlabs/SPADE#46
NVlabs/SPADE#112

In this PR there are some changes in the dataloader and some changes in the network architecture parameters as well.

python -u train.py --name test --dataset_mode pix2pix --dataroot datasets/dataset_wall_reports_v0/ --no_instance --label_nc 0 --batchSize 1

@AugustLee93
Copy link

Paired image to image translation tasks as in pix2pixHD (domain A -> domain B with paired images of the same name), Over in the SPADE repo the same question was asked multiple times, however, with no answer yet:

NVlabs/SPADE#46 NVlabs/SPADE#112

In this PR there are some changes in the dataloader and some changes in the network architecture parameters as well.

python -u train.py --name test --dataset_mode pix2pix --dataroot datasets/dataset_wall_reports_v0/ --no_instance --label_nc 0 --batchSize 1

@iamrishab Thanks your work!! I tried it, it can works, but when I do the testing , it's weired that it always went to generate the train_A folder, what is the standard test command ? Thanks

@iamrishab
Copy link
Author

@AugustLee93
Updated the data loader for test. Folder structure should be same as in pix2pixHD

python test.py --name test/ --dataset_mode pix2pix --dataroot datasets/test/ --gpu_ids 0,1,2,3 --which_epoch latest --no_instance --label_nc 0 --batchSize 4

@NuclearKAI
Copy link

useful

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

Successfully merging this pull request may close these issues.

3 participants