Compare commits

...

4 Commits

Author SHA1 Message Date
Jukka Seppänen
8ea265419b
Merge pull request #45 from eltociear/patch-1
docs: update readme.md
2025-02-06 08:54:36 +02:00
Jukka Seppänen
c8c351b456
Merge pull request #44 from AustinMroz/main
Support for compiling on AMD systems
2025-02-06 08:54:19 +02:00
Ikko Eltociear Ashimine
7995f31c3b
docs: update readme.md
ran -> run
2025-02-05 02:43:14 +09:00
Austin Mroz
f5f8ab2550
Support version calculation on AMD 2025-02-04 10:29:00 -06:00
2 changed files with 6 additions and 3 deletions

View File

@ -3,9 +3,12 @@ from torch.utils.cpp_extension import BuildExtension, CUDAExtension
import torch
torch_version = torch.__version__.split('+')[0].replace('.', '')
cuda_version = torch.version.cuda.replace('.', '')
if torch.version.cuda is not None:
cuda_version = "cuda"+torch.version.cuda.replace('.', '')
elif getattr(torch.version, 'hip', None) is not None:
cuda_version = "rocm" + torch.version.hip.replace('.','')
version = f"0.1.0+torch{torch_version}.cuda{cuda_version}"
version = f"0.1.0+torch{torch_version}.{cuda_version}"
# build custom rasterizer
# build with `python setup.py install`
# nvcc is needed

View File

@ -54,7 +54,7 @@ For the mesh_processor extension the build command would be this:
cd hy3dgen/texgen/differentiable_renderer
python setup.py build_ext --inplace
```
This file is supposed to be in that very folder. It is only used for the vertex inpainting, if this file doesn't exist the fallback is ran on cpu and is much slower. The vertex inpainting is on it's own node and in the worst case can just be bypassed, downside would be worse filling of the textures.
This file is supposed to be in that very folder. It is only used for the vertex inpainting, if this file doesn't exist the fallback is run on cpu and is much slower. The vertex inpainting is on it's own node and in the worst case can just be bypassed, downside would be worse filling of the textures.
Again, with portable you should use the embedded python to run the commands.