mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	Update use of select_cameras
				
					
				
			Summary: Removed `select_cameras.py` from implicitron and updated all callsites to directly index the cameras. Reviewed By: bottler Differential Revision: D33187605 fbshipit-source-id: aaf5b36aef9d72db0c7e89dec519f23646f6aa05
This commit is contained in:
		
							parent
							
								
									28ccdb7328
								
							
						
					
					
						commit
						d67662d13c
					
				@ -383,7 +383,7 @@ class CamerasBase(TensorProperties):
 | 
			
		||||
 | 
			
		||||
        kwargs = {}
 | 
			
		||||
 | 
			
		||||
        if not isinstance(index, (int, list, torch.LongTensor)):
 | 
			
		||||
        if not isinstance(index, (int, list, torch.LongTensor, torch.cuda.LongTensor)):
 | 
			
		||||
            msg = "Invalid index type, expected int, List[int] or torch.LongTensor; got %r"
 | 
			
		||||
            raise ValueError(msg % type(index))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user