-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VHELM improvements #2825
VHELM improvements #2825
Conversation
|
||
# Save the image to disk | ||
image = row["image"] | ||
image_file_name: str = generate_hash(image) + ".jpg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just name this f"{split}_{row_index}.jpg"
? Then we won't need hashes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want a unique hash per image because I worried the underlying huggingface dataset could get reshuffled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can deal with this by passing the githash e.g. revision="e9488045cbad16c973f031c7a8f7466b5dcc3794"
to load_dataset()
, then you don't have to worry about mutations. We should probably do this for all other usages of load_dataset()
, also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK to land, remaining comments are optional.
Changes
VISION_LANGUAGE_MODEL_TAG
tag toopenai/gpt-4-turbo-2024-04-09