YhuoyuH / RetinexMamba

MIT License
76 stars 7 forks source link

您好,我在测试的时候遇见了RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount)的问题;具体如下 #17

Open 674123 opened 2 months ago

674123 commented 2 months ago

export CUDA_VISIBLE_DEVICES=0 dataset LOL_v1 Not using Automatic Mixed Precision ===>Testing using weights: pretrained_weights/LOL.pth/net_g_1000.pth data/LOLv1/Test/input data/LOLv1/Test/target 0it [00:00, ?it/s] /root/miniconda3/lib/python3.8/site-packages/numpy/core/fromnumeric.py:3474: RuntimeWarning: Mean of empty slice. return _methods._mean(a, axis=axis, dtype=dtype, /root/miniconda3/lib/python3.8/site-packages/numpy/core/_methods.py:189: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount) PSNR: nan SSIM: nan

YhuoyuH commented 2 months ago

是否是显存溢出 ---- 回复的原邮件 ---- @.>发送日期2024年9月5日 @.>@.>主题[YhuoyuH/RetinexMamba] 您好,我在测试的时候遇见了RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount)的问题;具体如下 (Issue #17) export CUDA_VISIBLE_DEVICES=0 dataset LOL_v1 Not using Automatic Mixed Precision ===>Testing using weights: pretrained_weights/LOL.pth/net_g_1000.pth data/LOLv1/Test/input data/LOLv1/Test/target 0it [00:00, ?it/s] /root/miniconda3/lib/python3.8/site-packages/numpy/core/fromnumeric.py:3474: RuntimeWarning: Mean of empty slice. return _methods._mean(a, axis=axis, dtype=dtype, /root/miniconda3/lib/python3.8/site-packages/numpy/core/_methods.py:189: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount) PSNR: nan SSIM: nan — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>