new
Browse files
src/models/geometry/render/neural_render.py
CHANGED
@@ -15,9 +15,9 @@ from . import util
|
|
15 |
from . import renderutils as ru
|
16 |
_FG_LUT = None
|
17 |
|
18 |
-
os.environ[
|
19 |
-
os.environ[
|
20 |
-
os.environ[
|
21 |
def interpolate(attr, rast, attr_idx, rast_db=None):
|
22 |
return dr.interpolate(
|
23 |
attr.contiguous(), rast, attr_idx, rast_db=rast_db,
|
|
|
15 |
from . import renderutils as ru
|
16 |
_FG_LUT = None
|
17 |
|
18 |
+
os.environ['CUDA_HOME'] = '/usr/local/cuda-12.1'
|
19 |
+
os.environ['PATH'] += ':/usr/local/cuda-12.1/bin'
|
20 |
+
os.environ['LD_LIBRARY_PATH'] += ':/usr/local/cuda-12.1/lib64'
|
21 |
def interpolate(attr, rast, attr_idx, rast_db=None):
|
22 |
return dr.interpolate(
|
23 |
attr.contiguous(), rast, attr_idx, rast_db=rast_db,
|
src/models/geometry/rep_3d/flexicubes_geometry.py
CHANGED
@@ -16,7 +16,9 @@ from .dmtet import sdf_reg_loss_batch
|
|
16 |
from . import mesh
|
17 |
import torch.nn.functional as F
|
18 |
from src.utils import render
|
19 |
-
|
|
|
|
|
20 |
def get_center_boundary_index(grid_res, device):
|
21 |
v = torch.zeros((grid_res + 1, grid_res + 1, grid_res + 1), dtype=torch.bool, device=device)
|
22 |
v[grid_res // 2 + 1, grid_res // 2 + 1, grid_res // 2 + 1] = True
|
|
|
16 |
from . import mesh
|
17 |
import torch.nn.functional as F
|
18 |
from src.utils import render
|
19 |
+
os.environ['CUDA_HOME'] = '/usr/local/cuda'
|
20 |
+
os.environ['PATH'] += ':/usr/local/cuda/bin'
|
21 |
+
os.environ['LD_LIBRARY_PATH'] += ':/usr/local/cuda/lib64'
|
22 |
def get_center_boundary_index(grid_res, device):
|
23 |
v = torch.zeros((grid_res + 1, grid_res + 1, grid_res + 1), dtype=torch.bool, device=device)
|
24 |
v[grid_res // 2 + 1, grid_res // 2 + 1, grid_res // 2 + 1] = True
|