Open Genius-farmer opened 3 years ago
Just did this on utils
> def load_image(self, image_id):
> """Load the specified image and return a [H,W,3] Numpy array.
> # Load image
> image = cv2.imread(self.image_info[image_id]['path'])
> image = image[..., np.newaxis] # Extending the size of the image to be (h,w,1)
> return image
Result
ValueError: len(output_shape) cannot be smaller than the image dimensions
Dataset images are of all same dimensions.
~\AppData\Roaming\Python\Python36\site-packages\skimage\transform\_warps.py in resize(image, output_shape, order, mode, cval, clip, preserve_range, anti_aliasing, anti_aliasing_sigma)
98 output_shape = output_shape + (image.shape[-1], )
99 elif output_ndim < image.ndim - 1:
--> 100 raise ValueError("len(output_shape) cannot be smaller than the image "
101 "dimensions")
102
ValueError: len(output_shape) cannot be smaller than the image dimensions
I had tried to trace and the error comes out from _warps.py file. Is there a need to edit this file?
I receive same error as you did above How did you solve it? If you did
ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (3,2) and requested shape (2,2)
Hi, I've followed all the steps but I still get an error at the beginning of my training (Error when checking input: expected input_image to have shape (None, None, 1) but got array with shape (404, 404, 3)) and I don't see why i get it.
Getting this same error
ValueError: len(output_shape) cannot be smaller than the image dimensions
Anyone solved this??
These are the steps that I have followed so far for my grey scale dataset.
Step 1
Step 2
Alternate Step 2
Step 3
Step 4
Step 5
Step 6
When I run this code, I faced this issue from train(model)
The issue is different if I used "rgb2gray(image)" instead at Step 2
Alternate step 2
Please provide some assistance.