JeffreyXiang commited on
Commit
4f41697
·
1 Parent(s): 4e72d7a
app.py CHANGED
@@ -4,6 +4,7 @@ import spaces
4
  import os
5
  os.environ["OPENCV_IO_ENABLE_OPENEXR"] = '1'
6
  os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"
 
7
  from datetime import datetime
8
  import shutil
9
  import cv2
@@ -44,7 +45,6 @@ def preprocess_image(image: Image.Image) -> Image.Image:
44
  Returns:
45
  Image.Image: The preprocessed image.
46
  """
47
- print(torch.cuda.get_device_name())
48
  processed_image = pipeline.preprocess_image(image)
49
  return processed_image
50
 
 
4
  import os
5
  os.environ["OPENCV_IO_ENABLE_OPENEXR"] = '1'
6
  os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"
7
+ os.environ["FLEX_GEMM_AUTOTUNE_CACHE_PATH"] = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'autotune_cache.json')
8
  from datetime import datetime
9
  import shutil
10
  import cv2
 
45
  Returns:
46
  Image.Image: The preprocessed image.
47
  """
 
48
  processed_image = pipeline.preprocess_image(image)
49
  return processed_image
50
 
autotune_cache.json ADDED
The diff for this file is too large to render. See raw diff
 
requirements.txt CHANGED
@@ -20,10 +20,4 @@ https://github.com/JeffreyXiang/Storages/releases/download/Space_Wheels_251210/c
20
  https://github.com/JeffreyXiang/Storages/releases/download/Space_Wheels_251210/flex_gemm-0.0.1-cp310-cp310-linux_x86_64.whl
21
  https://github.com/JeffreyXiang/Storages/releases/download/Space_Wheels_251210/o_voxel-0.0.1-cp310-cp310-linux_x86_64.whl
22
  https://github.com/JeffreyXiang/Storages/releases/download/Space_Wheels_251210/nvdiffrast-0.3.5-cp310-cp310-linux_x86_64.whl
23
- https://github.com/JeffreyXiang/Storages/releases/download/Space_Wheels_251210/nvdiffrec_render-0.0.0-cp310-cp310-linux_x86_64.whl
24
-
25
- # https://huggingface.co/spaces/JeffreyXiang/TRELLIS.2/resolve/main/wheels/cumesh-0.0.1-cp310-cp310-linux_x86_64.whl?download=true
26
- # https://huggingface.co/spaces/JeffreyXiang/TRELLIS.2/resolve/main/wheels/flex_gemm-0.0.1-cp310-cp310-linux_x86_64.whl?download=true
27
- # https://huggingface.co/spaces/JeffreyXiang/TRELLIS.2/resolve/main/wheels/o_voxel-0.0.1-cp310-cp310-linux_x86_64.whl?download=true
28
- # https://huggingface.co/spaces/JeffreyXiang/TRELLIS.2/resolve/main/wheels/nvdiffrast-0.3.5-cp310-cp310-linux_x86_64?download=true
29
- # https://huggingface.co/spaces/JeffreyXiang/TRELLIS.2/resolve/main/wheels/nvdiffrec_render-0.0.0-cp310-cp310-linux_x86_64.whl?download=true
 
20
  https://github.com/JeffreyXiang/Storages/releases/download/Space_Wheels_251210/flex_gemm-0.0.1-cp310-cp310-linux_x86_64.whl
21
  https://github.com/JeffreyXiang/Storages/releases/download/Space_Wheels_251210/o_voxel-0.0.1-cp310-cp310-linux_x86_64.whl
22
  https://github.com/JeffreyXiang/Storages/releases/download/Space_Wheels_251210/nvdiffrast-0.3.5-cp310-cp310-linux_x86_64.whl
23
+ https://github.com/JeffreyXiang/Storages/releases/download/Space_Wheels_251210/nvdiffrec_render-0.0.0-cp310-cp310-linux_x86_64.whl
 
 
 
 
 
 
wheels/cumesh-0.0.1-cp310-cp310-linux_x86_64.whl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:64145453cb7251065d1d8609a465c136765530d4c6a7e2365c0d4287a5d3e090
3
- size 5195496
 
 
 
 
wheels/flex_gemm-0.0.1-cp310-cp310-linux_x86_64.whl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e4da97f8cf74f4a497e1c6ca43c0cad3561207dbd486fcf36b75531dfda56f90
3
- size 287764
 
 
 
 
wheels/nvdiffrast-0.3.5-cp310-cp310-linux_x86_64.whl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:461fff9f8ac027a71002462ce76a2d0865835a1b3218cd2434815b7aaa6fff88
3
- size 2438173
 
 
 
 
wheels/nvdiffrec_render-0.0.0-cp310-cp310-linux_x86_64.whl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4815500a36883e3b8d9870e370c09761cb424ec0fa4bcf0fbd457aa3d78b97b1
3
- size 1120765
 
 
 
 
wheels/o_voxel-0.0.1-cp310-cp310-linux_x86_64.whl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d52a3fba42b8874644872ff0f10bef2d20794749fd23454e53909a9d4db0ed94
3
- size 282174