-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SRCNN.NET does not load #13
Comments
It seem that the error comes from keras installation. What is the version of keras inside of the fensorflow you have installed? |
I had thought it was keras but no version was mentioned in the install instructions, or one that was used specifically... The one in my VENV is... well... unmarked. It doesn't have any keras version listed, however, the script is trying to use tensorflow.keras built into the 1.4.0 |
Looked into it further, and it appears to be version 2.0.8-tf |
out-of-date:
error:
SolutionCreate a new virtual environment.
For windows, use Python 3.6 x86-64 (can't use other python version), and install: Ref: #2 |
Following the solution, I was presented with
|
|
That appears to have done it, working fine on the examples now
|
Expected Output: Model would load and proceed to show lighting of examples/custom image
Obtained Output: Failure to load model with the correct dependencies installed. Error reason is unknown but can be guessed at where the root issue is.
Code snippet
Traceback (most recent call last): File "example001.py", line 18, in <module> from ProjectPaintingLight import run File "C:\Users\prome\PycharmProjects\PaintingLight\PaintingLight-master\code\ProjectPaintingLight.py", line 26, in <module> srcnn = tf.keras.models.load_model('srcnn.net') File "C:\Users\prome\PycharmProjects\PaintingLight\core\lib\site-packages\tensorflow\python\keras\_impl\keras\models.py", line 244, in load_model model_config = json.loads(model_config.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode'
I have gotten this program to work in the past, varies on day I installed python, some builds it will work, some builds it won't, even if they use the same dependencies and so on... A standalone version (packaged) or even a docker image might be useful, as this "app" is touchy enough to break from a number of other factors.
The text was updated successfully, but these errors were encountered: