path
Browse files1 unmodified line234567891011121314151617181920212223241 unmodified lineimport shleximport spacesimport subprocessdef install_cuda_toolkit():CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_550.54.14_linux.run"CUDA_TOOLKIT_FILE = "/tmp/%s" % os.path.basename(CUDA_TOOLKIT_URL)subprocess.call(["wget", "-q", CUDA_TOOLKIT_URL, "-O", CUDA_TOOLKIT_FILE])subprocess.call(["chmod", "+x", CUDA_TOOLKIT_FILE])subprocess.call([CUDA_TOOLKIT_FILE, "--silent", "--toolkit"])os.environ["CUDA_HOME"] = "/usr/local/cuda"os.environ["PATH"] = "%s/bin:%s" % (os.environ["CUDA_HOME"], os.environ["PATH"])os.environ["LD_LIBRARY_PATH"] = "%s/lib:%s" % (os.environ["CUDA_HOME"],"" if "LD_LIBRARY_PATH" not in os.environ else os.environ["LD_LIBRARY_PATH"],)os.environ["TORCH_CUDA_ARCH_LIST"] = "8.0;8.6"# install_cuda_toolkit()print("cd step1x3d_texture/differentiable_renderer/ && bash compile_mesh_painter.sh")os.system("cd step1x3d_texture/differentiable_renderer/ && bash compile_mesh_painter.sh")print('install custom')subprocess.run(shlex.split("pip install custom_rasterizer-0.1-cp310-cp310-linux_x86_64.whl"), check=True)import time1 unmodified line23456789101 unmodified lineimport shleximport spacesimport subprocessprint("cd /home/user/app/step1x3d_texture/differentiable_renderer/ && bash compile_mesh_painter.sh")os.system("cd /home/user/app/step1x3d_texture/differentiable_renderer/ && bash compile_mesh_painter.sh")print('install custom')subprocess.run(shlex.split("pip install custom_rasterizer-0.1-cp310-cp310-linux_x86_64.whl"), check=True)import time
app.py+2-16