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

Predicted Values all zero #14

Open
shaleenanuj opened this issue Apr 24, 2021 · 7 comments
Open

Predicted Values all zero #14

shaleenanuj opened this issue Apr 24, 2021 · 7 comments

Comments

@shaleenanuj
Copy link

I trained the model and after 22 epoch I tried to predict but the file which come on prediction is all zeros. can you please tell me what is the issue.

@zhangshuang317
Copy link

I encountered the same situation, did you solve this problem?

@gyakuz
Copy link

gyakuz commented Dec 4, 2021

Have you solved it yet,The predict file is not segmented

@JiahaoHuang99
Copy link

I met the same problem. Have you solved it?

@JiahaoHuang99
Copy link

Have you solved it yet,The predict file is not segmented

I found the result changed when I removed the normalize_volume() in predict.py, but the result is still terrible.

You can try it. And if you trained a good model, could you please send me your weight? Thanks.

@razeineldin
Copy link

Hi @shaleenanuj, @zhangshuang317, @gyakuz, @JiahaoHuang99,

I faced the same issue and solved it as follows:

The normalization code in normalize_volume() in predict.py has to be the same as the training normalization code.

normalized_slices[..., slice_ix] = normalize_slice(input_volume[..., slice_ix])

Instead of

normalized_slices[slice_ix] = input_volume[slice_ix]
for mode_ix in range(input_volume.shape[1]):
normalized_slices[slice_ix][mode_ix] = normalize_slice(input_volume[slice_ix][mode_ix])

@sneh-debug
Copy link

@shaleenanuj Please tell me the dependency of tensorflow and keras you have installed to run this code?

@Coolwen1997
Copy link

Have you solved it yet,The predict file is not segmented

I found the result changed when I removed the normalize_volume() in predict.py, but the result is still terrible.

You can try it. And if you trained a good model, could you please send me your weight? Thanks.

Sorry to bother you. The segmentation results from the trained model are terrible. And the val_loss is close to 0.9 even in the 30th epoch when I am training. Have you occurred the same problem and how did you solved it ? 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

7 participants