我们论文DiffCloth: 具有干摩擦接触的可微分布模拟的代码仓库
Ubuntu 22.04 | Mac OS 12
请确保使用--recursive
选项以安装依赖项
git clone --recursive https://github.com/omegaiota/DiffCloth.git
在顶级目录中:
mkdir build
cd build
cmake ..
make
运行优化:
./DiffCloth -demo {演示选项} -mode optimize -seed {随机种子}
其中{演示选项}
是以下选项中的演示名称,{随机种子}
是一个整数,用于任务初始猜测的随机初始化。
每个实验对应的选项是:
tshirt
sphere
hat
sock
dress
可视化优化迭代:
./DiffCloth -demo {演示选项} -mode visualize -exp {实验名称}
其中{实验名称}
是要可视化的迭代文件夹。代码仓库中包含了一个T恤的示例优化运行,位于output/tshirt-exampleopt/
,你可以通过以下命令可视化第一次迭代:
./DiffCloth -demo tshirt -mode visualize -exp tshirt-exampleopt/iter0/
优化的进度会保存在根文件夹的output/
目录中。中间进 度使用自定义的OpenGL查看器进行可视化。
构建Python绑定:
python setup.py install
以安装Python绑定包。如果修改了CPP代码,请重新运行此命令。conda env create python=3.8 --file environment.yml
,然后通过conda activate diffcloth
激活它训练/测试帽子控制器示例:
src/python_code
python hatController.py --eval --render --load_expname 20210809-trainedBest
python hatController.py --render
python hatController.py --train_resume --load_expname [实验名称] --load_epoch [轮数]
模拟结果会保存到根文件夹的output/
目录中。
如果你在设置仓库、运行示例或添加新示例方面有任何问题,欢迎通过liyifei@csail.mit.edu联系我或在GitHub上创建issue。
如果您发现我们的研究或这个代码库有帮助,请考虑引用我们的论文:
@article{Li2022diffcloth,
author = {Li, Yifei and Du, Tao and Wu, Kui and Xu, Jie and Matusik, Wojciech},
title = {DiffCloth: Differentiable Cloth Simulation with Dry Frictional Contact},
year = {2022},
issue_date = {February 2023},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
volume = {42},
number = {1},
issn = {0730-0301},
url = {https://doi.org/10.1145/3527660},
doi = {10.1145/3527660},
abstract = {Cloth simulation has wide applications in computer animation, garment design, and robot-assisted dressing. This work presents a differentiable cloth simulator whose additional gradient information facilitates cloth-related applications. Our differentiable simulator extends a state-of-the-art cloth simulator based on Projective Dynamics (PD) and with dry frictional contact [Ly et al. 2020]. We draw inspiration from previous work [Du et al. 2021] to propose a fast and novel method for deriving gradients in PD-based cloth simulation with dry frictional contact. Furthermore, we conduct a comprehensive analysis and evaluation of the usefulness of gradients in contact-rich cloth simulation. Finally, we demonstrate the efficacy of our simulator in a number of downstream applications, including system identification, trajectory optimization for assisted dressing, closed-loop control, inverse design, and real-to-sim transfer. We observe a substantial speedup obtained from using our gradient information in solving most of these applications.},
journal = {ACM Trans. Graph.},
month = {oct},
articleno = {2},
numpages = {20},
keywords = {differentiable simulation, cloth simulation, Projective Dynamics}
}
字节跳动发布的AI编程神器IDE
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。
全能AI智能助手,随时解答生活与工作的多样问题
问小白,由元石科技研发 的AI智能助手,快速准确地解答各种生活和工作问题,包括但不限于搜索、规划和社交互动,帮助用户在日常生活中提高效率,轻松管理个人事务。
实时语音翻译/同声传译工具
Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全 球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。
一键生成PPT和Word,让学习生活更轻松
讯飞智文是一个利用 AI 技术的项目,能够帮助用户生成 PPT 以及各类文档。无论是商业领域的市场分析报告、年度目标制定,还是学生群体的职业生涯规划、实习避坑指南,亦或是活动策划、旅游攻略等内容,它都能提供支持,帮助用户精准表达,轻松呈现各种信息。