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
When using certain pipeline tasks (e.g., "image-to-text") the get_pipeline function passes in model_dir as the tokenizer ink wargs. However, the Pipeline class expects a PretrainedTokenizer object instead. Because model_dir is being passed, when the tokenizer is decoded in the subclass it gives the error "message": "str object has no attribute decode".
This should be changed so that this function is using the proper tokenizer for the task.
The text was updated successfully, but these errors were encountered:
When using certain pipeline tasks (e.g., "image-to-text") the get_pipeline function passes in
model_dir
as the tokenizer ink wargs. However, the Pipeline class expects a PretrainedTokenizer object instead. Becausemodel_dir
is being passed, when the tokenizer is decoded in the subclass it gives the error"message": "str object has no attribute decode"
.This should be changed so that this function is using the proper tokenizer for the task.
The text was updated successfully, but these errors were encountered: