ICON源码复现(Implicit Clothed humans Obtained from Normals)

这篇博客记录了在使用PyOpenGL进行渲染时遇到的错误,包括OpenGL的invalid operation错误和网络连接超时问题。作者提供了详细的解决方法,如手动下载文件、修改源码中的egl参数和设置环境变量来实现无头渲染。此外,还分享了在不同项目中应用这些解决方案的命令行示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

源码位置

环境

按照作者的提示安装就行,我使用的一些库版本如下:
pytorch = 1.8.2 torchvision 0.9.2+cu111 PyOpenGL = 3.1.0
原作者:PyOpenGL == 3.1.1a1

过程中的问题

  • 若下载的文件解压出现错误 -> 手动下载

  • requests.exceptions.ConnectionError: HTTPSConnectionPool(host='drive.google.com', port=443): Max retries exceeded with url: /uc?id=1tCU5MM1LhRgGou5OpmpjBQbSrYIUoYab (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fcd7afffe80>: Failed to establish a new connection: [Errno 110] Connection timed out'))
    分析:应该是需要外网,然后连接下载东西;
    解决方法:找到程序中的url手动下载


  • 渲染报错 File “src/errorchecker.pyx”, line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
    OpenGL.error.GLError: GLError(
    err = 1282,
    description = b’invalid operation’,
    baseOperation = glGetUniformLocation,
    cArguments = (3, b’ModelMat\x00’),
    result = -1
    )
    scripts/render_single.sh: line 33: 425700 Segmentation fault (core dumped) python $PYTHON_SCRIPT -s $SUBJECT -o $SAVE_DIR -r $NUM_VIEWS -w $SIZE、


    解决方法:尝试无头渲染
	修改 egl=False (rendersingle.py 40)
	修改 ms_rate=16 to ms_rate=4.0 in line 115 of render_single.py
	在运行前在终端运行:
	1、export MESA_GL_VERSION_OVERRIDE=3.3
	2、unset PYOPENGL_PLATFORM
	正常运行
	
#在评估时也涉及到渲染,所以也需要加入:
	conda activate icon
	unset PYOPENGL_PLATFORM
	export MESA_GL_VERSION_OVERRIDE=3.3
	# ICON w/ filter
	CUDA_VISIBLE_DEVICES=0 python -m apps.train -cfg ./configs/train/icon-filter.yaml -test
	
	# ICON w/o filter
	CUDA_VISIBLE_DEVICES=0 python -m apps.train -cfg ./configs/train/icon-nofilter.yaml -test
	
	# PIFu* (*: re-implementation)
	CUDA_VISIBLE_DEVICES=0 python -m apps.train -cfg ./configs/train/pifu.yaml -test
	
	# PaMIR* (*: re-implementation)
	CUDA_VISIBLE_DEVICES=0 python -m apps.train -cfg ./configs/train/pamir.yaml -test
	

Reference

@inproceedings{xiu2022icon,
title = {{ICON}: {I}mplicit {C}lothed humans {O}btained from {N}ormals},
author = {Xiu, Yuliang and Yang, Jinlong and Tzionas, Dimitrios and Black, Michael J.},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2022},
pages = {13296-13306}
}

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

BTWBB

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值