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

An error occurred during the execution #1

Open
Dvv-75 opened this issue Dec 1, 2023 · 2 comments
Open

An error occurred during the execution #1

Dvv-75 opened this issue Dec 1, 2023 · 2 comments

Comments

@Dvv-75
Copy link

Dvv-75 commented Dec 1, 2023

After configuring the environment, when I run the following command: python main.py --dir_path /root/Code/AWCC/AWCC-Net/test/ --checkpoint /root/Code/AWCC/AWCC-Net/weight/best.pth, the program runs for a few seconds and then throws the following error:

0it [00:00, ?it/s]
/root/miniconda3/envs/AWCC1/lib/python3.10/site-packages/numpy/core/fromnumeric.py:3504: RuntimeWarning: Mean of empty slice.
return _methods._mean(a, axis=axis, dtype=dtype,
/root/miniconda3/envs/AWCC1/lib/python3.10/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in scalar divide
ret = ret.dtype.type(ret / rcount)
mse: nan, mae: nan
wt

How can I resolve this issue?

@aaaabbbbcccccjxzxj
Copy link

After configuring the environment, when I run the following command: python main.py --dir_path /root/Code/AWCC/AWCC-Net/test/ --checkpoint /root/Code/AWCC/AWCC-Net/weight/best.pth, the program runs for a few seconds and then throws the following error: 0it [00:00, ?it/s] /root/miniconda3/envs/AWCC1/lib/python3.10/site-packages/numpy/core/fromnumeric.py:3504: RuntimeWarning: Mean of empty slice. return _methods._mean(a, axis=axis, dtype=dtype, /root/miniconda3/envs/AWCC1/lib/python3.10/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in scalar divide ret = ret.dtype.type(ret / rcount) mse: nan, mae: nan wt

How can I resolve this issue?

I have the same issue as you. Have you solved it?

@aaaabbbbcccccjxzxj
Copy link

I think there is a problem loading the dataset, I tried to output the dataset length and found it to be 0

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

2 participants