Update models/ISOMER/mesh_reconstruction/render.py
Browse files
models/ISOMER/mesh_reconstruction/render.py
CHANGED
@@ -13,7 +13,9 @@ init_render()
|
|
13 |
|
14 |
@spaces.GPU
|
15 |
def _warmup(glctx, device=None):
|
16 |
-
|
|
|
|
|
17 |
device = 'cuda' if device is None else device
|
18 |
#windows workaround for https://github.com/NVlabs/nvdiffrast/issues/59
|
19 |
def tensor(*args, **kwargs):
|
|
|
13 |
|
14 |
@spaces.GPU
|
15 |
def _warmup(glctx, device=None):
|
16 |
+
if glctx==None:
|
17 |
+
print("==> glctx in none")
|
18 |
+
glctx = dr.RasterizeCudaContext(device="cuda")
|
19 |
device = 'cuda' if device is None else device
|
20 |
#windows workaround for https://github.com/NVlabs/nvdiffrast/issues/59
|
21 |
def tensor(*args, **kwargs):
|