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
The function one_hot_from_names throws an AssertionError when a class name - which is not in the original ImageNet classes and for which possible synsets do not exist either - is used.
This happens because the batch_size is not updated when calling one_hot_from_int in utils.py after converting words to their respective indices.
The following lines should be able to reproduce this:
The function
one_hot_from_names
throws an AssertionError when a class name - which is not in the original ImageNet classes and for which possible synsets do not exist either - is used.This happens because the batch_size is not updated when calling
one_hot_from_int
inutils.py
after converting words to their respective indices.The following lines should be able to reproduce this:
This would throw the following error:
The text was updated successfully, but these errors were encountered: