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 run test #27

Open
ZHANGMEIRONG opened this issue Jan 19, 2021 · 0 comments
Open

How to run test #27

ZHANGMEIRONG opened this issue Jan 19, 2021 · 0 comments

Comments

@ZHANGMEIRONG
Copy link

when I run this command
zhangmeirong@amax:~/color3/Colorizing-with-GANs$ CUDA_VISIBLE_DEVICES=0 python3 test.py --checkpoints-path ./checkpoints --test-input ./checkpoints/test --test-output ./checkpoints/output

I get this error

Traceback (most recent call last):
File "test.py", line 5, in
main(options)
File "/data0/zhangmeirong/color3/Colorizing-with-GANs/src/main.py", line 26, in main
model = Cifar10Model(sess, options)
File "/data0/zhangmeirong/color3/Colorizing-with-GANs/src/models.py", line 287, in init
super(Cifar10Model, self).init(sess, options)
File "/data0/zhangmeirong/color3/Colorizing-with-GANs/src/models.py", line 25, in init
self.dataset_train = self.create_dataset(True)
File "/data0/zhangmeirong/color3/Colorizing-with-GANs/src/models.py", line 321, in create_dataset
augment=self.options.augment)
File "/data0/zhangmeirong/color3/Colorizing-with-GANs/src/dataset.py", line 90, in init
super(Cifar10Dataset, self).init(CIFAR10_DATASET, path, training, augment)
File "/data0/zhangmeirong/color3/Colorizing-with-GANs/src/dataset.py", line 19, in init
self.data = []
AttributeError: can't set attribute

I don't known how to solve this problem?

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

1 participant