-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hi @LuChengTHU, thank you for the great work, which is very inspiring.
I run your code by defaulting settings, which work very well.
Now, I wanted to train your model for the hybrid task. Specifically, I run
run_cifar10.sh with adding --task hybrid, then I got the following error
Traceback (most recent call last):
File "train_img.py", line 507, in
model(x, restore=True)
File "/home/miniconda3/envs/research/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/GitHub/implicit-normalizing-flows/lib/implicit_flow.py", line 198, in forward
x = self.transforms[idx].forward(x, restore=restore)
File "/home/GitHub/implicit-normalizing-flows/lib/layers/container.py", line 15, in forward
x = self.chain[i](x, restore=restore)
File "/home/miniconda3/envs/research/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
TypeError: forward() got an unexpected keyword argument 'restore'
Can someone help me with the error? Thank you very much.