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
This snippet from the example Colab notebook causes an AttributeError.
signbank = tfds.load(name='sign_bank')
for datum in itertools.islice(signbank["train"], 0, 10):
print(datum['id'].numpy().decode('utf-8'), datum['sign_writing'].numpy().decode('utf-8'), [f.decode('utf-8') for f in datum['terms'].numpy()])
Rewriting it to be three print statements localizes to sign_writing
It seems this is because that is actually an array of shape (1,), rather than being bytes. Taking the first element, THEN calling decode works
Compare rwth-phoenix-weather-2014t
The text was updated successfully, but these errors were encountered:
The quick fix for this issue would be to simply edit the example notebook with a note, maybe something like:
signbank=tfds.load(name='sign_bank')
fordatuminitertools.islice(signbank["train"], 0, 10):
print(datum['id'].numpy().decode('utf-8'))
forsignwriting_itemindatum["sign_writing"]: # This feature is a Sequence of stringsprint(signwriting_item.numpy().decode('utf-8'))
print([f.decode('utf-8') forfindatum['terms'].numpy()])
This snippet from the example Colab notebook causes an AttributeError.
Rewriting it to be three print statements localizes to
sign_writing
It seems this is because that is actually an array of shape (1,), rather than being bytes. Taking the first element, THEN calling decode works

Compare
rwth-phoenix-weather-2014t
The text was updated successfully, but these errors were encountered: