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
All data nan #118
Comments
https://github.com/meetshah1995/pytorch-semseg/blob/6d2a31c4e389dfe4c62301748a46d5db49019ce6/train.py#L30
|
@adam9500370 I've replaced the code in in
and in
but the data is still nan while I run |
https://github.com/meetshah1995/pytorch-semseg/blob/6d2a31c4e389dfe4c62301748a46d5db49019ce6/ptsemseg/loader/ade20k_loader.py#L26
Therefore, you should set the path with the last slash symbol |
oh, thanks. but here appears another error :
Is it because the dimension of ade20k's picture isn't in accordance with dimension the code requires? |
ok , thank you very much! |
I use the second way so I keep original 3146 classes in ADE20K, I set
to:
but a new error appears:
thanks for your help! |
We can add
Or you can also set |
I tried to change the code as you said, and met the size error:
so I set
I check all the corrections like this issue:
do I miss some import corrections ? |
You need to move line 63 to line 41 in |
I've installed all requirement package, but as I run train.py --arch fcn8s ( I set ade20k as default), there are some warning and all result are nan like this:
/home/zqk/work/pytorch_seg/pytorch-semseg/ptsemseg/metrics.py:31:RuntimeWarning: invalid value encountered in double_scalars
acc = np.diag(hist).sum() / hist.sum()
/home/zqk/work/pytorch_seg/pytorch-semseg/ptsemseg/metrics.py:32: RuntimeWarning: invalid value encountered in divide
acc_cls = np.diag(hist) / hist.sum(axis=1)
/home/zqk/work/pytorch_seg/pytorch-semseg/ptsemseg/metrics.py:33: RuntimeWarning: Mean of empty slice
acc_cls = np.nanmean(acc_cls)
/home/zqk/work/pytorch_seg/pytorch-semseg/ptsemseg/metrics.py:34: RuntimeWarning: invalid value encountered in divide
iu = np.diag(hist) / (hist.sum(axis=1) + hist.sum(axis=0) - np.diag(hist))
/home/zqk/work/pytorch_seg/pytorch-semseg/ptsemseg/metrics.py:35: RuntimeWarning: Mean of empty slice
mean_iu = np.nanmean(iu)
/home/zqk/work/pytorch_seg/pytorch-semseg/ptsemseg/metrics.py:36: RuntimeWarning: invalid value encountered in divide
freq = hist.sum(axis=1) / hist.sum()
/home/zqk/work/pytorch_seg/pytorch-semseg/ptsemseg/metrics.py:37: RuntimeWarning: invalid value encountered in greater
fwavacc = (freq[freq > 0] * iu[freq > 0]).sum()
('FreqW Acc : \t', 0.0)
('Overall Acc: \t', nan)
('Mean Acc : \t', nan)
('Mean IoU : \t', nan)
0it [00:00, ?it/s]
('FreqW Acc : \t', 0.0)
('Overall Acc: \t', nan)
('Mean Acc : \t', nan)
('Mean IoU : \t', nan)
0it [00:00, ?it/s]
('FreqW Acc : \t', 0.0)
('Overall Acc: \t', nan)
('Mean Acc : \t', nan)
('Mean IoU : \t', nan)
0it [00:00, ?it/s]
('FreqW Acc : \t', 0.0)
('Overall Acc: \t', nan)
('Mean Acc : \t', nan)
('Mean IoU : \t', nan)
what's wrong with this? and how to fix it,thanks for your help
The text was updated successfully, but these errors were encountered: