Skip to content

Commit d67f367

Browse files
authored
Merge pull request #3 from pydn/2023-08-07_add_inference_mode
Removed .detach() because not needed in inference_mode
2 parents de8b64d + a958385 commit d67f367

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def main():
102102
)
103103
104104
saveimage_19 = saveimage.save_images(
105-
filename_prefix="ComfyUI", images=vaedecode_17[0].detach()
105+
filename_prefix="ComfyUI", images=vaedecode_17[0]
106106
)
107107
108108

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)