yu4u / noise2noise

An unofficial and partial Keras implementation of "Noise2Noise: Learning Image Restoration without Clean Data"
MIT License
1.07k stars 237 forks source link

Tensorflow error #46

Closed CyberLykan closed 3 years ago

CyberLykan commented 4 years ago

Trying to get this to work. Please help.

Using TensorFlow backend.

2019-10-13 01:35:21.059688: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found 2019-10-13 01:35:21.063914: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. WARNING:tensorflow:From C:\Users\jlege\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py:1630: calling BaseResourceVariable.init (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version. Instructions for updating: If using Keras pass *_constraint arguments to layers. 2019-10-13 01:35:22.330879: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll 2019-10-13 01:35:22.424836: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties: name: GeForce GTX 1050 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.4805 pciBusID: 0000:08:00.0 2019-10-13 01:35:22.430364: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found 2019-10-13 01:35:22.434807: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cublas64_100.dll'; dlerror: cublas64_100.dll not found 2019-10-13 01:35:22.439268: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cufft64_100.dll'; dlerror: cufft64_100.dll not found 2019-10-13 01:35:22.443703: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'curand64_100.dll'; dlerror: curand64_100.dll not found 2019-10-13 01:35:22.448700: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusolver64_100.dll'; dlerror: cusolver64_100.dll not found 2019-10-13 01:35:22.453224: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusparse64_100.dll'; dlerror: cusparse64_100.dll not found 2019-10-13 01:35:22.457750: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudnn64_7.dll'; dlerror: cudnn64_7.dll not found 2019-10-13 01:35:22.462243: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1641] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skipping registering GPU devices... 2019-10-13 01:35:22.471335: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 2019-10-13 01:35:22.478832: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1159] Device interconnect StreamExecutor with strength 1 edge matrix: 2019-10-13 01:35:22.482639: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1165] WARNING:tensorflow:From C:\Users\jlege\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\backend\tensorflow_backend.py:422: The name tf.global_variables is deprecated. Please use tf.compat.v1.global_variables instead.

Press any key to continue . . .

yu4u commented 4 years ago

Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.

AllenJac commented 3 years ago

In your example, 291 images are adopted for training , steps_per_epoch could be set as 1000 or other number. But when the code is run by tensorflow 2.3.1 , the steps_per_epoch only be 291/batch size(8)=36, after 36 steps, it stops training. How to solve this issue?

AllenJac commented 3 years ago

Another issue is that when the code is run by tensorflow 2.3.1, why the Val_PSNR and Val_loss become 0.0000e+00?

yuqiu1233 commented 3 years ago

Another issue is that when the code is run by tensorflow 2.3.1, why the Val_PSNR and Val_loss become 0.0000e+00?

Hi,AllenJac How to solve this problem? I have the same problem.

CyberLykan commented 3 years ago

I'm not using this tool anymore. If you have a similar issue, please create a new one.