-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' #6157
Comments
Thanks for reporting, but we can only fix this issue if you can provide a reproducer that consistently reproduces it. |
@mariosasko Ok. What exactly does it mean to provide a reproducer |
To provide a code that reproduces the issue :) |
@mariosasko I complete the above code, is it enough? |
@mariosasko That's all the code, I'm using locally stored data |
Does this error occur even if you change the cache directory (the |
@mariosasko I didn't add any parameters for catch. Nor did any cache configuration change. |
@mariosasko And I changed the data file, but executing load_dataset is always the previous result. I had to change something in images.py to use the new results. Using 'cleanup_cache_files' is invalid! Help me. |
@mariosasko I added a comprehensive error message. Check that _column_requires_decoding is being passed where it shouldn't be. DatasetInfo.init() Whether this parameter is required |
I can see the issue now... You can fix it by returning a def _info(self):
if self.config.name == "similar_pairs":
features = datasets.Features(
{
"image1": datasets.features.Image(),
"prompt1": datasets.Value("string"),
"image2": datasets.features.Image(),
"prompt2": datasets.Value("string"),
"similarity": datasets.Value("float32"),
}
)
elif self.config.name == "image_prompt_pairs":
features = datasets.Features(
{"image": datasets.features.Image(), "prompt": datasets.Value("string")}
)
return datasets.DatasetInfo(features=features) |
@mariosasko Oh, that's the problem. Thank you very much. Returned the wrong object and it actually works? I've been training with it for a long time |
@mariosasko The original code can still see progress. emmm, I can't see how many examples is generated so far, so I don't know if we should wait |
The original issue has been addressed, so I'm closing it. Please open a new issue if you encounter more errors. |
Describe the bug
When I was in load_dataset, it said "DatasetInfo.init() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked
Steps to reproduce the bug
/home/aihao/workspace/DeepLearningContent/datasets/images/images.py
Code that indicates an error:
Expected behavior
The first execution gives an error, but it works fine
Environment info
datasets
version: 2.14.3The text was updated successfully, but these errors were encountered: