You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I explained in this issue here: #95
I was able to resolve exporting the model and trained weights.
test_dicoms = ['test1.png','test2.png','test3.png','test4.png','test5.png','test6.png']
for img in test_dicoms:
full_size_image = io.imread(img, as_gray=True)
model.predict(np.asarray(full_size_image))
throws the following error:
ValueError: Error when checking model input: the list of Numpy arrays that you are passing to your model is not the size the model expected. Expected to see 2 array(s), but instead got the following list of 1 arrays: [array([[115, 164, 173, 170, 174, 167, 148, 125, 124, 126, 150, 191, 198,
206, 205, 209, 191, 180, 128, 109, 99, 67, 63, 58, 50, 41,
32, 41],
[150, 173, 191, 188, 191, 1...
Any help is appreciated. Thanks.
Note: test_dicoms has the correct path and images are already 28 * 28 (verified with image.shape).
The text was updated successfully, but these errors were encountered:
Hi,
As I explained in this issue here: #95
I was able to resolve exporting the model and trained weights.
throws the following error:
ValueError: Error when checking model input: the list of Numpy arrays that you are passing to your model is not the size the model expected. Expected to see 2 array(s), but instead got the following list of 1 arrays: [array([[115, 164, 173, 170, 174, 167, 148, 125, 124, 126, 150, 191, 198,
206, 205, 209, 191, 180, 128, 109, 99, 67, 63, 58, 50, 41,
32, 41],
[150, 173, 191, 188, 191, 1...
Any help is appreciated. Thanks.
Note: test_dicoms has the correct path and images are already 28 * 28 (verified with image.shape).
The text was updated successfully, but these errors were encountered: