mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 13:59:10 +08:00
add warning if using non jit unet
This commit is contained in:
1 parent
fd5b8be160
commit
3dffd956fe
1 file changed
+3
@@ -109,6 +109,9 @@ class StableDiffusion(nn.Module):
|
|||||||
self.unet = TracedUNet()
|
self.unet = TracedUNet()
|
||||||
del pipe.unet
|
del pipe.unet
|
||||||
else:
|
else:
|
||||||
|
CONSOLE.print(
|
||||||
|
"Warning: Loading UNet without JIT acceleration. Run trace_stablediff.py in the scripts folder for a speedup!"
|
||||||
|
)
|
||||||
self.unet = pipe.unet
|
self.unet = pipe.unet
|
||||||
self.unet.to(memory_format=torch.channels_last)
|
self.unet.to(memory_format=torch.channels_last)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user