File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
pytorch3d/renderer/implicit Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ def forward(
207
207
n_rays_per_image ,
208
208
) = _sample_cameras_and_masks (n_rays_total , cameras , mask )
209
209
else :
210
- camera_ids = torch .range ( 0 , len (cameras ), dtype = torch .long )
210
+ camera_ids = torch .arange ( len (cameras ), dtype = torch .long )
211
211
212
212
batch_size = cameras .R .shape [0 ]
213
213
device = cameras .device
@@ -438,7 +438,7 @@ def forward(
438
438
n_rays_per_image ,
439
439
) = _sample_cameras_and_masks (self ._n_rays_total , cameras , None )
440
440
else :
441
- camera_ids = torch .range ( 0 , len (cameras ), dtype = torch .long )
441
+ camera_ids = torch .arange ( len (cameras ), dtype = torch .long )
442
442
n_rays_per_image = self ._n_rays_per_image
443
443
444
444
batch_size = cameras .R .shape [0 ]
You can’t perform that action at this time.
0 commit comments