79576702

Date: 2025-04-16 08:23:37
Score: 1.5
Natty:
Report link

data_set["train"]["image"].append(img)
data_set["train"]["label"].append(labels.index(direct))

Instead of

data_set["train"].add_item(n)

it solved my problem, thank you - furas, in the https://github.com/huggingface/datasets/issues/4796 they offered a solution to the problem, but in a more general way + uploading to the hub, for me the essence came down to two line

PS and without

from datasets import Image
feature = Image()
n['image'] = feature.encode_example(n['image'])
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pulf