mrdbourke/trashify_examples
Example images to be used with the Trashify object detection demo. See link to the demo: https://huggingface.co/spaces/mrdbourke/trashify_demo_v4 Example usage: from datasets import load_dataset trashify_examples = load_dataset("mrdbourke/trashify_examples") trashify_examples Save images to file: for i, sample in enumerate(trashify_examples["train"]): save_path = f"../demos/trashify_object_detector/trashify_examples/trashify_example_{i+1}.jpeg" print(f"[INFO] Saving image to:… See the full description on the dataset page: https://huggingface.co/datasets/mrdbourke/trashify_examples.
Example images to be used with the Trashify object detection demo.
See link to the demo: https://huggingface.co/spaces/mrdbourke/trashify_demo_v4
Example usage:
from datasets import load_dataset
trashify_examples = load_dataset("mrdbourke/trashify_examples")
trashify_examplesSave images to file:
for i, sample in enumerate(trashify_examples["train"]):
save_path = f"../demos/trashify_object_detector/trashify_examples/trashify_example_{i+1}.jpeg"
print(f"[INFO] Saving image to: {save_path}")
sample["image"].save(save_path)