You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
When i create a ImageClassificationData object with the from_data_frame factory method, it works as long as i do not set
predict_images_root
predict_data_frame
Once i set the above flags i get a Value-Error:
ValueError: File ID `path/to/file.png` did not resolve to an existing file. For use cases which involve first converting the ID to a file you should pass a custom resolver when loading the data.
First thing i found is, that the predict_images_root is ignored and it is therefore not finding the image.
Digging a little bit digger, it seems that the .from_data_frame is not properly calling ImageClassificationDataFrameInput:
🐛 Bug
When i create a
ImageClassificationData
object with thefrom_data_frame
factory method, it works as long as i do not setpredict_images_root
predict_data_frame
Once i set the above flags i get a Value-Error:
ValueError: File ID `path/to/file.png` did not resolve to an existing file. For use cases which involve first converting the ID to a file you should pass a custom resolver when loading the data.
First thing i found is, that the
predict_images_root
is ignored and it is therefore not finding the image.Digging a little bit digger, it seems that the
.from_data_frame
is not properly callingImageClassificationDataFrameInput
:Suggestion for fix
The last line should be replaced with
This way the target_fields are set to
None
and the values are correctly set.To Reproduce
Steps to reproduce the behavior:
Just use the
from_data_frame
factory with prediction data, likeExpected behavior
see Suggestion for fix
Environment
conda
,pip
, source): pip with virtualenvThe text was updated successfully, but these errors were encountered: