jiangsutx / SRN-Deblur

Repository for Scale-recurrent Network for Deep Image Deblurring
http://www.xtao.website/projects/srndeblur/srndeblur_cvpr18.pdf
MIT License
709 stars 184 forks source link

HOW CAN I DO TESTING USING GPU?? #67

Closed KainatRiaz98 closed 2 years ago

KainatRiaz98 commented 2 years ago

I passed the argument --gpu=0. I have cuda installed. I even tried to run it on google colab still it displays "Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA" showing it is running on CPU. I need to do tesing on thousands of images and CPU testing is too slow. am I doing anything wrong? please help.

noobtoob4lyfe commented 2 years ago

I'm having the same issue. Did you ever find a solution? This issue should probably remain open until it's fixed no?

KainatRiaz98 commented 2 years ago

I did find the solution. Firstly, instead of this repository I used ' https://github.com/thisishardik/SRN-Deblur' . it has support for tensor flow 2.x . secondly passing arguments does not work for this repository for some reason so just physically change in the script run_model.py. I was able to do testing on GPU by making these changes.

noobtoob4lyfe commented 2 years ago

Thanks for the response. Unfortunately I got into the weeds a bit here with new errors. When I install the latest gpu version or go back to 1.14 I get the same error.

"File "C:\Users\importon\Documents\SRN-Deblur-master\models\model.py", line 10, in import tensorflow.contrib.slim as slim ModuleNotFoundError: No module named 'tensorflow.contrib'"

Did you experience this?

KainatRiaz98 commented 2 years ago

Try '!pip install tf_slim'

On Tue, 18 Jan 2022, 4:47 am noobtoob4lyfe, @.***> wrote:

Thanks for the response. Unfortunately I got into the weeds a bit here with new errors. When I install the latest gpu version or go back to 1.14 I get the same error.

"File "C:\Users\importon\Documents\SRN-Deblur-master\models\model.py", line 10, in import tensorflow.contrib.slim as slim ModuleNotFoundError: No module named 'tensorflow.contrib'"

Did you experience this?

— Reply to this email directly, view it on GitHub https://github.com/jiangsutx/SRN-Deblur/issues/67#issuecomment-1014958478, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVA35K52EMVH6XSS6UKGQK3UWSTAJANCNFSM5DSIMNTQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you modified the open/close state.Message ID: @.***>

noranali commented 2 years ago

I passed the argument --gpu=0. I have cuda installed. I even tried to run it on google colab still it displays "Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA" showing it is running on CPU. I need to do tesing on thousands of images and CPU testing is too slow. am I doing anything wrong? please help.

can you share google colab please ?

KainatRiaz98 commented 2 years ago

send me your email address

On Wed, Apr 20, 2022 at 11:36 PM noranali @.***> wrote:

I passed the argument --gpu=0. I have cuda installed. I even tried to run it on google colab still it displays "Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA" showing it is running on CPU. I need to do tesing on thousands of images and CPU testing is too slow. am I doing anything wrong? please help.

can you share google colab please ?

— Reply to this email directly, view it on GitHub https://github.com/jiangsutx/SRN-Deblur/issues/67#issuecomment-1104321794, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVA35K2OWV6F4CJDNY6KLCLVGBFEBANCNFSM5DSIMNTQ . You are receiving this because you modified the open/close state.Message ID: @.***>