mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 15:59:16 +08:00
Change name to pyrad
This commit is contained in:
1 parent
ee1dcdd197
commit
1a8ad9a763
87 files changed
+186
-187
No files matched your search
@@ -2,9 +2,9 @@
|
||||
Test the CUDA bindings.
|
||||
"""
|
||||
import torch
|
||||
from radiance.cuda.sampler import Sampler
|
||||
from pyrad.cuda.sampler import Sampler
|
||||
import time
|
||||
import radiance_cuda
|
||||
import pyrad_cuda
|
||||
import os
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ def test_benchmark():
|
||||
print("PYTORCH_SAMPLE_TIME:", PYTORCH_SAMPLE_TIME)
|
||||
|
||||
start = time.time()
|
||||
time_steps_cu, samples_cu, time_steps_mask_cu = radiance_cuda.sample_uniformly_along_ray_bundle(
|
||||
time_steps_cu, samples_cu, time_steps_mask_cu = pyrad_cuda.sample_uniformly_along_ray_bundle(
|
||||
origins, directions, nears, fars, offsets, max_num_samples
|
||||
)
|
||||
CUDA_SAMPLE_TIME = time.time() - start
|
||||
|
||||
Reference in new issue
Block a user