Spaces:
Running
on
Zero
Running
on
Zero
| raw_root=/home/users/xinjie.wang/xinjie/asset3d-gen/ | |
| dirpath=/home/users/xinjie.wang/xinjie/hf_spaces/EmbodiedGen-Image-to-3D | |
| cp-space-img: | |
| mkdir -p ${dirpath} | |
| cp -rf ${raw_root}/embodied_gen ${dirpath}/ | |
| mkdir -p ${dirpath}/thirdparty/TRELLIS | |
| cp -rf ${raw_root}/thirdparty/TRELLIS/trellis ${dirpath}/thirdparty/TRELLIS | |
| mkdir -p ${dirpath}/assets/example_image | |
| cp ${raw_root}/apps/image_to_3d.py ${dirpath}/app.py | |
| cp ${raw_root}/apps/common.py ${dirpath}/ | |
| cp ${raw_root}/requirements.txt ${dirpath}/ | |
| rm -rf ${dirpath}/thirdparty/TRELLIS/trellis/representations/mesh/flexicubes/images | |
| find ${dirpath} -type d -name '__pycache__' -exec rm -r {} + | |
| sed -i 's/demo.launch(server_name="10.34.8.82", server_port=8081)/demo.launch()/g' ${dirpath}/app.py | |
| sed -i 's|apps/assets/example_image|assets/example_image|g' ${dirpath}/app.py | |
| sed -i 's/+cu118//g' ${dirpath}/requirements.txt | |
| rm -rf ${dirpath}/embodied_gen/data/backup | |
| # disable enable_model_cpu_offload, enable_xformers_memory_efficient_attention | |