Skip to content

Commit 4b6197d

Browse files
author
Peyton
committed
Removed .detach() because not needed in inference_mode
1 parent a7a43f4 commit 4b6197d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

comfyui_to_python.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ def format_arg(key: str, value: any) -> str:
149149
elif isinstance(value, str):
150150
value = value.replace("\n", "\\n")
151151
return f'{key}="{value}"'
152-
elif key == 'images' and "saveimage" in obj_name and isinstance(value, dict) and 'variable_name' in value:
153-
return f'{key}={value["variable_name"]}.detach()'
154152
elif isinstance(value, dict) and 'variable_name' in value:
155153
return f'{key}={value["variable_name"]}'
156154
return f'{key}={value}'

0 commit comments

Comments
 (0)