Xieih commited on
Commit
d7f27ec
·
verified ·
1 Parent(s): ac3b25c

Fix dataset id in usage examples

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -39,7 +39,7 @@ Images are JPEG, long side ≤1024 px, quality 88. Short side p5 = 576 px.
39
  ```python
40
  from datasets import load_dataset
41
 
42
- ds = load_dataset("xieyihong04-creator/tree7") # train / valid / test
43
  ds["train"][0]["image"] # PIL.Image, decoded on access
44
  ds["train"][0]["label"], ds["train"][0]["class_name"]
45
  names = ds["train"].features["label"].names # 0..6 -> class_name
@@ -54,7 +54,7 @@ from torch.utils.data import DataLoader
54
  from datasets import load_dataset
55
 
56
  proc = AutoImageProcessor.from_pretrained("microsoft/resnet-50")
57
- ds = load_dataset("xieyihong04-creator/tree7", split="train")
58
 
59
  def collate(batch):
60
  px = proc(images=[b["image"] for b in batch], return_tensors="pt")
@@ -124,6 +124,6 @@ The parquet packaging and this dataset card are MIT; the pipeline code is MIT.
124
  author = {xieyihong04-creator},
125
  year = {2026},
126
  note = {Images derived from iNaturalist (CC BY-NC / CC BY / CC0) and Wikimedia Commons},
127
- url = {https://huggingface.co/datasets/xieyihong04-creator/tree7}
128
  }
129
  ```
 
39
  ```python
40
  from datasets import load_dataset
41
 
42
+ ds = load_dataset("Xieih/tree7") # train / valid / test
43
  ds["train"][0]["image"] # PIL.Image, decoded on access
44
  ds["train"][0]["label"], ds["train"][0]["class_name"]
45
  names = ds["train"].features["label"].names # 0..6 -> class_name
 
54
  from datasets import load_dataset
55
 
56
  proc = AutoImageProcessor.from_pretrained("microsoft/resnet-50")
57
+ ds = load_dataset("Xieih/tree7", split="train")
58
 
59
  def collate(batch):
60
  px = proc(images=[b["image"] for b in batch], return_tensors="pt")
 
124
  author = {xieyihong04-creator},
125
  year = {2026},
126
  note = {Images derived from iNaturalist (CC BY-NC / CC BY / CC0) and Wikimedia Commons},
127
+ url = {https://huggingface.co/datasets/Xieih/tree7}
128
  }
129
  ```