zju3dv / pvnet-rendering

render images for pvnet training
Apache License 2.0
183 stars 46 forks source link

Blender quit(ValueError: a must be non-empty) #40

Closed zhuyazhi closed 4 years ago

zhuyazhi commented 4 years ago

您好,请问以下的错误是什么原因呀 root@terminal35f8111b:/opt/data/private/zhuyazhi/pvnet-rendering-master# python run.py --type rendering AL lib: (EE) ALCplaybackOSS_open: Could not open /dev/dsp: No such file or directory found bundled python: /root/blender-2.79a-linux-glibc219-x86_64/2.79/python Read blend: /opt/data/private/zhuyazhi/pvnet-rendering-master/data/blank.blend

Successfully imported '/opt/data/private/zhuyazhi/pvnet-rendering-master/data/LINEMOD/ape/ape.ply' in 1.891 sec Traceback (most recent call last): File "/opt/data/private/zhuyazhi/pvnet-rendering-master/blender/render_backend.py", line 456, in batch_render_with_linemod(args, camera) File "/opt/data/private/zhuyazhi/pvnet-rendering-master/blender/render_backend.py", line 366, in batch_render_with_linemod bg_imgs = np.random.choice(bg_imgs, size=cfg.NUM_SYN) File "mtrand.pyx", line 1083, in mtrand.RandomState.choice (numpy/random/mtrand/mtrand.c:10406) ValueError: a must be non-empty

Blender quit

zhuyazhi commented 4 years ago

ln -s /opt/data/private/zhuyazhi/pvnet-rendering-master/data/LINEMOD LINEMOD ln -s /opt/data/private/zhuyazhi/pvnet-rendering-master/data/LINEMOD_ORIG LINEMOD_ORIG ln -s /opt/data/private/zhuyazhi/pvnet-rendering-master/data/SUN2012pascalformat SUN 我这样建立link的,是不是需要加./data

pengsida commented 4 years ago

在data目录下建立软链接。

zhuyazhi commented 4 years ago

重新建立连接之后还是出现以上问题: ln -s /opt/data/private/zhuyazhi/pvnet-rendering-master/data/datasets/LINEMOD ./data/LINEMOD ln -s /opt/data/private/zhuyazhi/pvnet-rendering-master/data/datasets/LINEMOD_ORIG ./data/LINEMOD_ORIG ln -s /opt/data/private/zhuyazhi/pvnet-rendering-master/data/datasets/SUN2012pascalformat ./data/SUN image

zhuyazhi commented 4 years ago

bg_images.npy is empty

pengsida commented 4 years ago

你可以打断点看看

zhuyazhi commented 4 years ago

谢谢您!这个问题我解决了,默认合成10张图片,然后我改成了10000,render过程正常,但是后面的depth图片是EXR的格式(10_depth.png0001.exr),我看代码里面有一个exr_to_png()函数,是需要10000张图片渲染完毕才会调用这个函数将exr->png吗 image

pengsida commented 4 years ago

对的。

jinzhiyang1 commented 4 years ago

您好 请问您运行完这个代码了么?我在跑这个数据集的时候,遇到一些问题,方便为我解答一下么?

jinzhiyang1 commented 4 years ago

谢谢您!这个问题我解决了,默认合成10张图片,然后我改成了10000,render过程正常,但是后面的depth图片是EXR的格式(10_depth.png0001.exr),我看代码里面有一个exr_to_png()函数,是需要10000张图片渲染完毕才会调用这个函数将exr->png吗 image

我也遇到了同样的问题,建立软连接之后仍然报了同样的错误,请问您是怎么解决的,方便为我解答一下么?谢谢!