Skip to content

Conversation

mahdirahimi1999
Copy link

Summary

This PR simplifies how we handle temporary files for the control image in the ControlNet pipeline. The tempfile is now used for both writing and reading without reopening it.

Changes

  • Combined write and read logic for tempfile
  • Used seek(0) to reset the file pointer

Benefits

  • Cleaner and more efficient code
  • Fewer file operations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant