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

TypeError while running test.py #5

Open
Davide-sd opened this issue Jan 16, 2019 · 5 comments
Open

TypeError while running test.py #5

Davide-sd opened this issue Jan 16, 2019 · 5 comments

Comments

@Davide-sd
Copy link

I'm trying this implementation, but I'm having an error running the command python3 test.py. I never used tensorlayer, so I think I need help.

This is the traceback:

Traceback (most recent call last):
  File "test.py", line 48, in <module>
    dec_net = decoder.decode(target_features, prefix="decoder/")
  File "/home/davide/Documents/Development/AI/adaptive-style-transfer/models.py", line 39, in decode
    net = UpSampling2dLayer(net, [2, 2], method=1)
  File "/usr/local/lib/python3.6/dist-packages/tensorlayer/layers/convolution.py", line 509, in __init__
    size_h = size[0] * int(self.inputs.get_shape()[1])
TypeError: __int__ returned non-int (type NoneType)

I'm using tensorlayer 1.8.1 and tensorflow 1.12.

@TianMingChen
Copy link

I'm trying this implementation, but I'm having an error running the command python3 test.py. I never used tensorlayer, so I think I need help.

This is the traceback:

Traceback (most recent call last):
  File "test.py", line 48, in <module>
    dec_net = decoder.decode(target_features, prefix="decoder/")
  File "/home/davide/Documents/Development/AI/adaptive-style-transfer/models.py", line 39, in decode
    net = UpSampling2dLayer(net, [2, 2], method=1)
  File "/usr/local/lib/python3.6/dist-packages/tensorlayer/layers/convolution.py", line 509, in __init__
    size_h = size[0] * int(self.inputs.get_shape()[1])
TypeError: __int__ returned non-int (type NoneType)

I'm using tensorlayer 1.8.1 and tensorflow 1.12.

Do you have solve this problem?

@zsdonghao
Copy link
Member

would you try tl 1.14 ?

@TianMingChen
Copy link

would you try tl 1.14 ?

it seems not have tensorlayer 1.14 Versions?

@Davide-sd
Copy link
Author

Hello @TianMingChen ,

It's been a few months now... I did solve that problem but I'm not sure how. Probably I upgraded tensorlayer to a newer version. In my system I have installed version 1.11.1, and it worked as expected.

@TianMingChen
Copy link

Hello @TianMingChen ,

It's been a few months now... I did solve that problem but I'm not sure how. Probably I upgraded tensorlayer to a newer version. In my system I have installed version 1.11.1, and it worked as expected.

Ok,thanks a lot!

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

3 participants