maria-korosteleva / GarmentCode

A modular programming framework for designing parametric sewing patterns
MIT License
131 stars 10 forks source link

Environment Setup Notes #17

Open yukistavailable opened 3 days ago

yukistavailable commented 3 days ago

Hi, thank you for such a wonderful project Here is my note on the environmental setup

GPU: RTX4080 OS: Ubuntu 22.04 CUDA: 12.2

Create Conda Env

 conda create -n garmentcode python=3.9
 conda activate garmentcode
 conda install -c conda-forge gcc=11.4.0 gxx=11.4.0 # depends on your cuda version
 pip install numpy==1.24.0 scipy pyaml>=6.0 svgwrite psutil matplotlib svgpathtools cairosvg nicegui trimesh libigl pyrender cgal

Build NvidiaWarp-GarmentCode

 git clone https://github.com/maria-korosteleva/NvidiaWarp-GarmentCode
 cd NvidiaWarp-GarmentCode
 chmod +x ./tools/packman/packman
 python build_lib.py
 pip install -e .

Setup GarmentCode

 git clone https://github.com/maria-korosteleva/GarmentCode.git
 cd GarmentCode
 cp system.template.json system.json
 pip install pygarment

Download 5000_body_shapes_and_measures.tar.gz as well from here

Create Patterns

python pattern_sampler.py --name garmentcodedata --size 10

Simulate

python pattern_data_sim.py --data garmentcodedata_10_240916-17-45-08 --config default_sim_props.yaml --default_body
maria-korosteleva commented 21 hours ago

Oh, wonderful, thank you for sharing!