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

Syntax Error - pix2pix_model.py #15

Open
Sauder1973 opened this issue Sep 9, 2020 · 3 comments
Open

Syntax Error - pix2pix_model.py #15

Sauder1973 opened this issue Sep 9, 2020 · 3 comments

Comments

@Sauder1973
Copy link

Your paper is fascinating. That you so much for sharing your code. I am finding a problem though and I'm sure if it is something on my end. I run it with a single GPU machine with ID 0. The command line is as follows. I modified it slightly where the ID was set to 0. Your example of 1 gave me an "invalid device ordinal" error :

python test.py --dataroot ./ --model pix2pix --which_model_netG resnet_6blocks --which_direction AtoB --dataset_mode aligned --norm batch --display_id 0 --batchSize 1 --loadSize 128 --fineSize 128 --no_flip --name gpubatch_resnet --how_many 1 --ndf 256 --ngf 128 --which_ref ./new_crop/1.png --gpu_ids 0 --csv_path 00116.csv --results_dir results_video.

When I execute, I get the following:
I'm not sure how async is used or why it is throwing the error. Just curious if there is something obviously wrong that could be the cause. Appreciate any ideas you might have.

image

@Blade6570
Copy link
Owner

Hi, I think you are facing this problem Replace async with non_blocking for Python 3.7

Thanks

@Sauder1973
Copy link
Author

Thank you - I will give that a try.

@Sauder1973
Copy link
Author

Just verified that your suggestion works - No errors. Replacing async with non_blocking worked perfectly! Again, thanks for helping me out!

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