SRGAN icon indicating copy to clipboard operation
SRGAN copied to clipboard

valueerror :no variables to optimize.

Open wehkjhkl opened this issue 6 years ago • 5 comments

I am trying to modify the network,but there is something wrong,It shows that there are no variables to optimize.

wehkjhkl avatar Nov 13 '18 03:11 wehkjhkl

please report your environment - tf , tl, python version

zsdonghao avatar Nov 14 '18 00:11 zsdonghao

@zsdonghao I run my code on windows ,python3.5,tensorflow1.8,tensorlayer1.9。anython wrong?

wehkjhkl avatar Nov 17 '18 04:11 wehkjhkl

I cannot found the reason, could you update TF and TL to the latest version and have a try again?

zsdonghao avatar Nov 18 '18 04:11 zsdonghao

@zsdonghao the function name SRGAN_g shoud correspond with "SRGAN_g" in tf.variable_scope("SRGAN_g", reuse=reuse)

wehkjhkl avatar Nov 22 '18 07:11 wehkjhkl

It works for me as the site indicates. sudo pip install tensorlayer == 1.8.0 sudo pip install tensorflow == 1.4.0

joellerena avatar Mar 25 '19 16:03 joellerena