Cameras pr followup (#622)

cameras manual indexing bug in datamanager
This commit is contained in:
Jake Austin authored and GitHub committed 2022-10-02 22:38:14 -07:00
1 parent 08aaa8b3a5
commit 297950f7ec
2 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -401,7 +401,7 @@ class Cameras:
scaling_factor: Scaling factor to apply to the output resolution.
"""
if isinstance(scaling_factor, float):
scaling_factor = torch.tensor([scaling_factor]).broadcast_to((self.size))
scaling_factor = torch.tensor([scaling_factor]).to(self.device).broadcast_to((self.size))
self.fx = self.fx * scaling_factor
self.fy = self.fy * scaling_factor