H-DenseUNet icon indicating copy to clipboard operation
H-DenseUNet copied to clipboard

test.py error

Open Hung-Hsiang-617 opened this issue 4 years ago • 5 comments

When I run test.py. The error occur below.

File "test.py", line 4, in from keras import backend as K File "Keras-2.0.8/keras/init.py", line 4, in from . import activations File "Keras-2.0.8/keras/activations.py", line 6, in from .engine import Layer File "Keras-2.0.8/keras/engine/init.py", line 3, in from .topology import InputSpec File "Keras-2.0.8/keras/engine/topology.py", line 8, in import yaml File "Keras-2.0.8/yaml/init.py", line 2, in from error import * ModuleNotFoundError: No module named 'error'

My version: python 3.6.8 tensorflow 1.5.1 tensorflow-gpu 1.2.1 keras 2.0.8

I can not find the solution to solve it.

Hung-Hsiang-617 avatar Apr 03 '20 08:04 Hung-Hsiang-617

try python2

zhangwang997 avatar Apr 06 '20 11:04 zhangwang997

Thank you. I already solved the problems.

Hung-Hsiang-617 avatar Apr 07 '20 14:04 Hung-Hsiang-617

@Hung-Hsiang-617 How did you solve it? I have encountered the same problem.

LidaGuo1999 avatar Apr 11 '20 00:04 LidaGuo1999

just use python 2 and keras 2.0.8 . I thinks this code can not run in python 3.

Hung-Hsiang-617 avatar Apr 13 '20 04:04 Hung-Hsiang-617

This code can not run in Python 3.

wanghuogen avatar Nov 29 '21 13:11 wanghuogen