You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I believe the outer loop for o in history['outputs']: is redundant and can be removed. This loop seems to serve no practical purpose as it merely iterates over the length of history['outputs'] without performing any operations on each element.
Secondly, I think images_output = [] should be placed above the condition if 'images' in node_output:. The current code structure will result in an error local variable 'images_output' referenced before assignment when the if condition is false.
Can the author or community members explain if there are any additional considerations for this code, or if it was simply written in error? Thank you!
Link to the code
First, I believe the outer loop
for o in history['outputs']:
is redundant and can be removed. This loop seems to serve no practical purpose as it merely iterates over the length ofhistory['outputs']
without performing any operations on each element.Secondly, I think
images_output = []
should be placed above the conditionif 'images' in node_output:
. The current code structure will result in an errorlocal variable 'images_output' referenced before assignment
when theif
condition is false.Can the author or community members explain if there are any additional considerations for this code, or if it was simply written in error? Thank you!
Suggested modification:
The text was updated successfully, but these errors were encountered: