Skip to content

Fixed issues with dataset loading and input_boxes #495

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Yazangthb
Copy link

Dataset loading was giving this error:
NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported

This was solved by simply adding :
pip install -U datasets

Also another error was encountered when passing input_boxes to the preprocesser:
inputs = processor(image, input_boxes=[input_boxes], return_tensors="pt").to(device)
ValueError: Input boxes must be a list of list of list of floating points.

Which was solved by adding an extra square brackets
inputs = processor(image, input_boxes=[[input_boxes]], return_tensors="pt").to(device)

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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