fix required instance_column and image_column cast#10175
fix required instance_column and image_column cast#10175davidberenstein1957 wants to merge 6 commits intohuggingface:mainfrom
Conversation
There was a problem hiding this comment.
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.
@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.
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.