Skip to content
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

pop from empty list #66

Open
Bitsy-Chuck opened this issue Jul 31, 2020 · 1 comment
Open

pop from empty list #66

Bitsy-Chuck opened this issue Jul 31, 2020 · 1 comment

Comments

@Bitsy-Chuck
Copy link

# Instantiate the model
model = PConvUnet(vgg_weights='./data/logs/pytorch_to_keras_vgg16.h5')
# model.load(r"C:\Users\Mathias Felix Gruber\Documents\GitHub\PConv-Keras\data\logs\single_image_test\weights.10-0.89.h5")

The error occurs here.

@FelipeGdM
Copy link

FelipeGdM commented Sep 30, 2020

I had the same problem with python3.8 and Ubuntu 20.04

The library uses tensorflow v1.x syntax, that is not supported anymore in python3.8. From Tensorflow install instructions

Python 3.8 support requires TensorFlow 2.2 or later.

The solution is downgrade your python version, preferably using a python virtualenv.

  • Stackoverflow answer on how create a virtualenv with custom python version
  • Tutorial on how to point jupyter kernel to a virtual enviroment

Creating a virtualenv with python3.6 solved the problem for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants