debugdll commited on
Commit
5900d8e
·
verified ·
1 Parent(s): d68e607

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +54 -16
README.md CHANGED
@@ -5,38 +5,76 @@ tags:
5
  - text-to-image
6
  - diffusers
7
  pretty_name: CatDataset1k
 
 
8
  ---
9
  # CatDataset1k
10
 
11
- 1000 images of cats (domestic cats) for training. Query: `cat`.
 
12
 
13
- ## Format
 
 
 
14
 
15
- - `metadata.csv` — columns `file_name,text`. Every image is labeled `cat`.
16
- - Images: cat_0000.jpg ... cat_0999.jpg
17
 
18
- ## Usage (datasets)
19
 
20
  ```python
21
  from datasets import load_dataset
22
 
23
- ds = load_dataset("imagefolder", data_dir=".")
24
- # each item: {"image": PIL, "text": "cat"}
 
25
  ```
26
 
27
- ## Usage (diffusers — text inversion / LoRA)
 
 
28
 
29
  ```python
30
- from diffusers import DiffusionPipeline
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
- pipeline = DiffusionPipeline.from_pretrained(
33
- "runwayml/stable-diffusion-v1-5",
34
- use_safetensors=True,
35
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  ```
37
 
38
  ## Notes
39
 
40
- - Query: `cat`
41
- - Caption: `cat` for every image
42
- - Sources: Wikimedia Commons + Flickr via Openverse (open licenses)
 
5
  - text-to-image
6
  - diffusers
7
  pretty_name: CatDataset1k
8
+ language:
9
+ - en
10
  ---
11
  # CatDataset1k
12
 
13
+ Dataset of **1000 images of cats** (domestic cats, `Felis catus`) for training models,
14
+ experiments and fine-tuning (image generation, classification, etc.).
15
 
16
+ - Query: `cat`
17
+ - Caption / label for every image: `cat`
18
+ - Files: `cat_0000.jpg` ... `cat_0999.jpg` (JPEG)
19
+ - Sources: Wikimedia Commons + Flickr (via Openverse), open licenses
20
 
21
+ ## How to download / use
 
22
 
23
+ ### 1. Load directly with the datasets library (recommended)
24
 
25
  ```python
26
  from datasets import load_dataset
27
 
28
+ ds = load_dataset("debugdll/DataCat1k")
29
+ # ds["train"][0]["image"] -> PIL image
30
+ # ds["train"][0]["text"] -> "cat"
31
  ```
32
 
33
+ No token required — the dataset is public. Total size ~ a few hundred MB.
34
+
35
+ Streaming (no full download, images loaded on demand):
36
 
37
  ```python
38
+ ds = load_dataset("debugdll/DataCat1k", streaming=True)
39
+ row = next(iter(ds["train"]))
40
+ ```
41
+
42
+ ### 2. Download the files with the CLI
43
+
44
+ ```bash
45
+ pip install huggingface_hub
46
+ huggingface-cli download debugdll/DataCat1k
47
+ ```
48
+
49
+ ### 3. Download with git
50
+
51
+ ```bash
52
+ git clone https://huggingface.co/datasets/debugdll/DataCat1k
53
+ ```
54
+
55
+ ### 4. Download individual images (browser / direct link)
56
 
57
+ ```
58
+ https://huggingface.co/datasets/debugdll/DataCat1k/resolve/main/cat_0000.jpg
59
+ ```
60
+
61
+ Change the filename `cat_0000.jpg` in the link to get any other image.
62
+
63
+ ## Format
64
+
65
+ - `metadata.csv` — columns `file_name,text`
66
+ - The CSV + images use the standard Hugging Face `imagefolder` layout,
67
+ so `load_dataset("debugdll/DataCat1k")` is inferred automatically.
68
+
69
+ ## Training usage (diffusers LoRA / text-to-image)
70
+
71
+ ```python
72
+ from datasets import load_dataset
73
+
74
+ ds = load_dataset("debugdll/DataCat1k", split="train") # column: image, text="cat"
75
  ```
76
 
77
  ## Notes
78
 
79
+ - Caption for every image: `cat`
80
+ - All images are public-domain / openly licensed photos