Cancer-detection-using-CNN
                                
                                
                                
                                    Cancer-detection-using-CNN copied to clipboard
                            
                            
                            
                        Cannot use my own image
i cannot use my own image that is not 512*512 for the model to test bc it says ValueError: setting an array element with a sequence, while the image in the sample folder is ok
"setting an array element with a sequence" simply means the size of arrays inside the list are different. Example: [[1,2], [1,2,3]]
Now, in regards to this question, the input image has a different size than the images that the model has been trained upon. Refer the sample image for dimensions
is there any method to change the code so that any size of image can be used as input?
It won't fit the model. You need to use a method called pooling to change the size of the image
On Sat, 29 Dec 2018, 2:50 pm Alan liu <[email protected] wrote:
is there any method to change the code so that any size of image can be used as input?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rishiswethan/Cancer-detection-using-CNN/issues/6#issuecomment-450478621, or mute the thread https://github.com/notifications/unsubscribe-auth/ARdPCl4bBZrq1el_DehwvJDsqHt1UHo1ks5u9zPWgaJpZM4ZkdbP .