tensorlayer / SRGAN

Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
https://github.com/tensorlayer/tensorlayerx
3.24k stars 813 forks source link

cannot import name 'Linear' from 'tensorlayerx.nn' #243

Closed Zhyixin closed 2 years ago

Zhyixin commented 2 years ago

Traceback (most recent call last): File "train.py", line 9, in from srgan import SRGAN_g, SRGAN_d File "..\srgan.py", line 4, in from tensorlayerx.nn import Linear, MaxPool2d ImportError: cannot import name 'Linear' from 'tensorlayerx.nn'

How can I solve this problem?

AIisCool commented 2 years ago

I'm having the same issue too.

hanjr92 commented 2 years ago

hello,please install tensorlayerx via source pip install git+https://github.com/tensorlayer/tensorlayerx.git @AIisCool @Zhyixin