-
Couldn't load subscription status.
- Fork 6.5k
fix required instance_column and image_column cast #10175
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
base: main
Are you sure you want to change the base?
Conversation
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.
cc @linoytsaban @sayakpaul, minor fixes. I can create separate issue to link them to if preferred.
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
Thanks @davidberenstein1957! re: |
| raise ValueError( | ||
| f"`--image_column` value '{args.image_column}' not found in dataset columns. Dataset columns are: {', '.join(column_names)}" | ||
| ) | ||
| dataset["train"] = dataset["train"].cast_column(image_column, Image(decode=True)) |
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 is this needed?
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.
@sayakpaul fix to force casting and image column to decode to ensure this is done for feature sets where decoding automatically is not the default
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.
Okay let's have that as a comment too. Thanks for explaining!
I think okay if it's made a non-required argument, though. |
|
@sayakpaul @linoytsaban I just realised these fixes might also need to be applied to other dreambooth scripts? |
@davidberenstein1957 yes :) this can apply to -
|
@sayakpaul @davidberenstein1957 I'm not opposed to it either, but it might be good to add a informative warning/throw an error in places we relied on |
|
@linoytsaban will make sure to add some context if neither one of the required params is provided. |
|
Error sounds good. We could tackle this just for a single script and open the rest to the community. I don't think we need to be exhaustive at all. |
Yeah I agree |
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
What does this PR do?
instance_promptFixes # NA
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.