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

module 'models.networks' has no attribute 'modify_commandline_options' #16

Closed
QiushiPan opened this issue Apr 14, 2019 · 9 comments
Closed

Comments

@QiushiPan
Copy link

When I run "python test.py --name coco_pretrained --dataset_mode coco --dataroot H:\datasets\COCO\train"

Traceback (most recent call last):
File "test.py", line 15, in
opt = TestOptions().parse()
File "H:\SPADE-master\options\base_options.py", line 150, in parse
opt = self.gather_options()
File "H:\SPADE-master\options\base_options.py", line 85, in gather_options
parser = model_option_setter(parser, self.isTrain)
File "H:\SPADE-master\models\pix2pix_model.py", line 14, in modify_commandline_options
networks.modify_commandline_options(parser, is_train)
AttributeError: module 'models.networks' has no attribute 'modify_commandline_options'

how can i fix that?thx

@myfunc
Copy link

myfunc commented Apr 14, 2019

I have the same problem.
How you fixed this?

@QiushiPan QiushiPan reopened this Apr 14, 2019
@QiushiPan
Copy link
Author

I have the same problem.
How you fixed this?

copy the whole 'sync_batchnorm' folder to the 'networks' folder, but not only replace the files.

@timhouben
Copy link

I have the same problem.
How you fixed this?

copy the whole 'sync_batchnorm' folder to the 'networks' folder, but not only replace the files.

This copy action is also mentioned in the installation procedure right?
cp Synchronized-BatchNorm-PyTorch/sync_batchnorm . -rf

Already did this but still get the AttributeError...

@QiushiPan
Copy link
Author

I have the same problem.
How you fixed this?

copy the whole 'sync_batchnorm' folder to the 'networks' folder, but not only replace the files.

This copy action is also mentioned in the installation procedure right?
cp Synchronized-BatchNorm-PyTorch/sync_batchnorm . -rf

Already did this but still get the AttributeError...

yes,it's already mentioned. have u fixed it?what's the whole error information?

@QiushiPan
Copy link
Author

I have the same problem.
How you fixed this?

copy the whole 'sync_batchnorm' folder to the 'networks' folder, but not only replace the files.

This copy action is also mentioned in the installation procedure right?
cp Synchronized-BatchNorm-PyTorch/sync_batchnorm . -rf

Already did this but still get the AttributeError...

yes,it's already mentioned. have u fixed it?what's the whole error information?

I have the same problem.
How you fixed this?

copy the whole 'sync_batchnorm' folder to the 'networks' folder, but not only replace the files.

This copy action is also mentioned in the installation procedure right?
cp Synchronized-BatchNorm-PyTorch/sync_batchnorm . -rf

Already did this but still get the AttributeError...

yes,it's already mentioned. have u fixed it?what's the whole error information?

@mahesh557
Copy link

Any fix?

@potato123-hash
Copy link

any fix?

@bimal-logix12
Copy link

Any Fix ?

@EricLeeaaaaa
Copy link

Ok I've got it. Just cp the whole sync_batchnorm folder to models\networks, not the files in 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

7 participants