Skip to content

feat: replace open() with File() for dataset image param inputs#19

Open
collindutter wants to merge 1 commit intomainfrom
feat/apply-file
Open

feat: replace open() with File() for dataset image param inputs#19
collindutter wants to merge 1 commit intomainfrom
feat/apply-file

Conversation

@collindutter
Copy link
Member

Summary

  • Replace open(image_file, "rb") with File(str(image_file)).read_bytes() in generate_dataset_node.py
  • Ensures proper sandboxed file access for user dataset folder parameter inputs

Test plan

  • Test GenerateDatasetNode with a local dataset folder containing images
  • Verify all image types (jpg, png, webp) are loaded correctly

🤖 Generated with Claude Code

Replace open(image_file, "rb") with File(str(image_file)).read_bytes()
for reading user dataset images from the dataset folder parameter
in generate_dataset_node.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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