cleaning up jit code

This commit is contained in:
terrance committed 2023-02-03 22:28:03 +00:00
1 parent c458fe2250
commit 3c71429d30
2 files changed
+1 -30

No files matched your search

+1 -1
View File
@@ -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"""