mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
(minor) Align upsampling in TensorCPEncoding with TensorVMEncoding (#2493)
* (minor) Align upsampling in TensorCPEncoding with TensorVMEncoding * Fix black --------- Co-authored-by: Matthew Tancik <mattt4001@gmail.com> Co-authored-by: Matthew Tancik <matt@lumalabs.ai>
This commit is contained in:
1 file changed
+2
-3
@@ -482,9 +482,8 @@ class TensorCPEncoding(Encoding):
|
|||||||
resolution: Target resolution.
|
resolution: Target resolution.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self.line_coef.data = F.interpolate(
|
line_coef = F.interpolate(self.line_coef.data, size=(resolution, 1), mode="bilinear", align_corners=True)
|
||||||
self.line_coef.data, size=(resolution, 1), mode="bilinear", align_corners=True
|
self.line_coef = torch.nn.Parameter(line_coef)
|
||||||
)
|
|
||||||
|
|
||||||
self.resolution = resolution
|
self.resolution = resolution
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user