retina-unet
retina-unet copied to clipboard
TypeError: __init__() got an unexpected keyword argument 'input_dtype'
Hi, I am going to test the net, but I get the following error: I am using CUDA8.0, GTX TITAN X GPU, Ubuntu 14.04. root@1f9eab07a59c:~/laocp/keras/retina-unet-master# python run_testing.py
-
Create directory for the results (if not already existing)
-
Run the prediction on GPU (no nohup) Using Theano backend. WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be removed in the next release (v0.10). Please switch to the gpuarray backend. You can get more information about how to switch at this URL: https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29
Using cuDNN version 5105 on context None Mapped name None to device cuda: GeForce GTX TITAN X (0000:01:00.0) Using gpu device 0: GeForce GTX TITAN X (CNMeM is disabled, cuDNN 5105)
the side H is not compatible with the selected stride of 5 img_h 584, patch_h 48, stride_h 5 (img_h - patch_h) MOD stride_h: 1 So the H dim will be padded with additional 4 pixels the side W is not compatible with the selected stride of 5 img_w 565, patch_w 48, stride_w 5 (img_w - patch_w) MOD stride_w: 2 So the W dim will be padded with additional 3 pixels new full images shape: (20, 1, 588, 568)
test images shape: (20, 1, 588, 568)
test mask shape: (20, 1, 584, 565) test images range (min-max): 0.0 - 1.0 test masks are within 0-1
Number of patches on h : 109 Number of patches on w : 105 number of patches per image: 11445, totally for this dataset: 228900
test PATCHES images shape:
(228900, 1, 48, 48)
test PATCHES images range (min-max): 0.0 - 1.0
Traceback (most recent call last):
File "./src/retinaNN_predict.py", line 111, in
Any idea on how to resolve this problem? Thx for sharing!!
Hi, This code is developed by @lantiga @dcorti , I am learning as you are.
It seems this code error with keras's function 'model_from_json', I think the file which storage the model named 'experiment_name_architecture.json' was broken or missing, then you need to training the model again. Or maybe import not correctly at this time, you can try it again.
And make sure your experiment name in 'configuration.txt' as the same as you want to test.
Please forgive me, have you train the model first? (If you did, please ignore this :) )
hope this can help you.
I have the same issue How did you solve it?