LTT commited on
Commit
43258f9
1 Parent(s): c9dbdd7
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["CUDA_HOME"] = "/usr/local/cuda"
19
- os.environ["PATH"] += os.pathsep + os.path.join(os.environ["CUDA_HOME"], "bin")
20
- os.environ["LD_LIBRARY_PATH"] = os.environ.get("LD_LIBRARY_PATH", "") + os.pathsep + os.path.join(os.environ["CUDA_HOME"], "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,
 
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