mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-30 12:59:40 +08:00
1 parent
08aaa8b3a5
commit
297950f7ec
2 files changed
+8
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user