mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-05-02 12:18:59 +08:00
remove prints
This commit is contained in:
parent
5a15eea036
commit
7364ce7d2d
@ -490,7 +490,7 @@ class TorchCompileCosmosModel:
|
|||||||
if not self._compiled:
|
if not self._compiled:
|
||||||
try:
|
try:
|
||||||
for name, block in diffusion_model.blocks.items():
|
for name, block in diffusion_model.blocks.items():
|
||||||
print(f"Compiling block {name}")
|
#print(f"Compiling block {name}")
|
||||||
compiled_block = torch.compile(block, mode=mode, dynamic=dynamic, fullgraph=fullgraph, backend=backend)
|
compiled_block = torch.compile(block, mode=mode, dynamic=dynamic, fullgraph=fullgraph, backend=backend)
|
||||||
m.add_object_patch(f"diffusion_model.blocks.{name}", compiled_block)
|
m.add_object_patch(f"diffusion_model.blocks.{name}", compiled_block)
|
||||||
#diffusion_model.blocks[name] = compiled_block
|
#diffusion_model.blocks[name] = compiled_block
|
||||||
@ -503,7 +503,6 @@ class TorchCompileCosmosModel:
|
|||||||
"dynamic": dynamic,
|
"dynamic": dynamic,
|
||||||
}
|
}
|
||||||
setattr(m.model, "compile_settings", compile_settings)
|
setattr(m.model, "compile_settings", compile_settings)
|
||||||
print(model.model.diffusion_model.blocks)
|
|
||||||
|
|
||||||
except:
|
except:
|
||||||
raise RuntimeError("Failed to compile model")
|
raise RuntimeError("Failed to compile model")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user