Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-trained models issue #1

Open
mostaan66 opened this issue Jun 1, 2023 · 0 comments
Open

pre-trained models issue #1

mostaan66 opened this issue Jun 1, 2023 · 0 comments

Comments

@mostaan66
Copy link

Hi Caio,

I am trying to test your pre-trained "VGG16" model for the "active wave segmentation" using "predict.py" on my own data, but I'm facing some issues:

The output predicted label using "pred = M.predict(np.expand_dims(img/255, axis=0)) is a single value with shape (1, 1) while I assume it should return an array with the same size of the input image (i.e. assigning a single value prediction for each "pixel" and not the whole image). It seems to me that the pre-trained model is a classification model and not segmentation. In the end, this causes an error in proceeding running the codes and getting the predicted wave segmentation mask.

I also found that the input image to your pre-trained "VGG16" model is not 256x256 (as mentioned in the codes), instead I resized the input image to 128x128 and removed "img = gray2rgb(imread(image)) for my input image RGB images.

Could you please clarify it for me and if there is a mistake with your model, provide me with the correct pre-trained models for "wave segmentation"?

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant