Comments (5)
Sorry . I meant the Nvidia tf docker container version
You can try tf 1.9 . It's working for me
Could you tell me what image you're using? and Maybe steps after.
I'm trying this without success.
docker run --gpus all -it --rm -v $PWD:/tmp -w /tmp tensorflow/tensorflow:1.14.0-gpu-py3 bash
pip install -U pip
pip install -r requirements.txt
python main.py --upscale --scale 4 --image 1.png
Traceback (most recent call last):
File "main.py", line 2, in <module>
import data_utils
File "/tmp/data_utils.py", line 5, in <module>
import cv2
File "/usr/local/lib/python3.6/dist-packages/cv2/__init__.py", line 5, in <module>
from .cv2 import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
EDIT:
I had a success but I had to do some stuff like installing
pip install opencv-python-headless
and replacing code to not use the function "cv2.imshow" like this:
--- a/run.py
+++ b/run.py
@@ -302,12 +302,14 @@ class run:
bicubic_image = cv2.resize(fullimg, None, fx=self.scale, fy=self.scale, interpolation=cv2.INTER_CUBIC)
- cv2.imshow('Original image', fullimg)
- cv2.imshow('EDSR upscaled image', HR_image)
- cv2.imshow('Bicubic upscaled image', bicubic_image)
+ #cv2.imshow('Original image', fullimg)
+ #cv2.imshow('EDSR upscaled image', HR_image)
+ #cv2.imshow('Bicubic upscaled image', bicubic_image)
- cv2.waitKey(0)
- cv2.destroyAllWindows()
+ #cv2.waitKey(0)
+ #cv2.destroyAllWindows()
+ cv2.imwrite("./output.png", HR_image)
+ #print("path is:",path)
EDIT2: for multiple file processing, made a bash script (just sharing)
mkdir -p input; mkdir -p output; mkdir -p output/input
#put png's in "input" dir
find input -name '*.png'| sort | awk '{print "python main.py --upscale --scale 4 --image "$1" ; mv output.png output/"$s}'|bash
from edsr_tensorflow.
Getting the same error, they are using some old version of tensorflow , so you have to downgrade the version . (They didn't specify the tf version )
tensorflow 19.10
will work
from edsr_tensorflow.
What do you mean version 19.10? maybe it was a typo.
for reference, here are the available version numbers: https://www.tensorflow.org/install/source#linux
It would be awesome if they Included a Requirements file, as to not go hunting for packages.
from edsr_tensorflow.
Sorry . I meant the Nvidia tf docker container version
You can try tf 1.9 . It's working for me
from edsr_tensorflow.
Hi guys,
Thanks for the question/discussion. I am using TensorFlow 1.14.0 and it's working. I added a requirements.txt. Let me know if it works.
from edsr_tensorflow.
Related Issues (12)
- Quantization Error when using Deephi Tools HOT 3
- One question about the amount of memory that consumed for storing and processing the data
- prototxt file for the ".pb" file HOT 1
- tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'Dequantize' used by {{node resFilter_three}}with these attrs: [mode="MIN_FIRST", T=DT_QUINT8] HOT 1
- Not working for me HOT 2
- more WARNING and deprecated HOT 1
- No OpKernel was registered to support Op 'Dequantize'. HOT 3
- Questions! HOT 4
- test_file HOT 1
- where is the valid_dataset? HOT 1
- About the mean rgb of DIV2K dataset HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edsr_tensorflow.