RandLA-Net icon indicating copy to clipboard operation
RandLA-Net copied to clipboard

运行S3DIS数据时,epoch为0

Open wlwnwafu opened this issue 5 years ago • 9 comments

亲爱的胡老师: 您好,我是一名本科生,最近在看您的文章,在运行的时候“sh jobs_6_fold_cv_s3dis.sh”这一条命令时,遇到了 “EPOCH 0* Caught a NaN error : 3 2 root error(s) found. (0) Invalid argument: ValueError: attempt to get argmin of an empty sequence Traceback (most recent call last):

File "/home/wlw/.local/lib/python3.6/site-packages/tensorflow/python/ops/script_ops.py", line 209, in call ret = func(*args)

File "/home/wlw/.local/lib/python3.6/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 514, in generator_py_func values = next(generator_state.get_iterator(iterator_id))

File "main_S3DIS.py", line 114, in spatially_regular_gen cloud_idx = int(np.argmin(self.min_possibility[split]))

File "<array_function internals>", line 6, in argmin

File "/home/wlw/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 1267, in argmin return _wrapfunc(a, 'argmin', axis=axis, out=out)

File "/home/wlw/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 58, in _wrapfunc return _wrapit(obj, method, *args, **kwds)

File "/home/wlw/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 47, in _wrapit result = getattr(asarray(obj), method)(*args, **kwds)

ValueError: attempt to get argmin of an empty sequence”这个错误,学生刚刚进入学习阶段,或许范一些很简单的错误,但还是希望您能不吝赐教,解答一下,十分感谢您的帮助。

wlwnwafu avatar Jun 10 '20 16:06 wlwnwafu

查看log,里边是空的

wlwnwafu avatar Jun 11 '20 08:06 wlwnwafu

也就是说训练时,epoch里边都是空的

wlwnwafu avatar Jun 12 '20 04:06 wlwnwafu

@QingyongHu

wlwnwafu avatar Jun 12 '20 09:06 wlwnwafu

你好 请问问题解决了吗?

MrHynes avatar Jun 25 '20 02:06 MrHynes

你好 请问问题解决了吗?

是的,这是数据路径的问题,你要检查所有文件的数据路径,要把“/data/.......”的“/”去掉就可以解决了

wlwnwafu avatar Jun 25 '20 02:06 wlwnwafu

你好 请问问题解决了吗?

是的,这是数据路径的问题,你要检查所有文件的数据路径,要把“/data/.......”的“/”去掉就可以解决了

已解决,非常感谢!

MrHynes avatar Jun 25 '20 12:06 MrHynes

亲爱的胡老师: 您好,我是一名本科生,最近在看您的文章,在运行的时候“sh jobs_6_fold_cv_s3dis.sh”这一条命令时,遇到了 “EPOCH 0* Caught a NaN error : 3 2 root error(s) found. (0) Invalid argument: ValueError: attempt to get argmin of an empty sequence Traceback (most recent call last):

File "/home/wlw/.local/lib/python3.6/site-packages/tensorflow/python/ops/script_ops.py", line 209, in call ret = func(*args)

File "/home/wlw/.local/lib/python3.6/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 514, in generator_py_func values = next(generator_state.get_iterator(iterator_id))

File "main_S3DIS.py", line 114, in spatially_regular_gen cloud_idx = int(np.argmin(self.min_possibility[split]))

File "<array_function internals>", line 6, in argmin

File "/home/wlw/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 1267, in argmin return _wrapfunc(a, 'argmin', axis=axis, out=out)

File "/home/wlw/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 58, in _wrapfunc return _wrapit(obj, method, *args, **kwds)

File "/home/wlw/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 47, in _wrapit result = getattr(asarray(obj), method)(*args, **kwds)

ValueError: attempt to get argmin of an empty sequence”这个错误,学生刚刚进入学习阶段,或许范一些很简单的错误,但还是希望您能不吝赐教,解答一下,十分感谢您的帮助。

同学你好,我目前也在跑这个网络,想请教你一些问题,方便的话请加一下我的微信:Yaomengmeng_1996

YAOmmeng avatar Sep 04 '20 09:09 YAOmmeng

你好 请问问题解决了吗?

是的,这是数据路径的问题,你要检查所有文件的数据路径,要把“/data/.......”的“/”去掉就可以解决了

谢谢你,我的异常是计算出了NaN,也是路径的问题,/data...忘记改了 hahha

YuhangJi avatar Aug 17 '21 07:08 YuhangJi