mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-25 02:19:47 +08:00
cleaning up jit code
This commit is contained in:
1 parent
c458fe2250
commit
3c71429d30
2 files changed
+1
-30
No files matched your search
@@ -92,7 +92,7 @@ class StableDiffusion(nn.Module):
|
||||
unet_traced_filename = Path(appdirs.user_data_dir("nerfstudio")) / "unet_traced.pt"
|
||||
if unet_traced_filename.exists():
|
||||
CONSOLE.print("Loading traced UNet.")
|
||||
unet_traced = torch.jit.load("unet_traced.pt")
|
||||
unet_traced = torch.jit.load(unet_traced_filename)
|
||||
|
||||
class TracedUNet(torch.nn.Module):
|
||||
"""Jitted version of UNet"""
|
||||
|
||||
Reference in new issue
Block a user