Datasets:
Tasks:
Image Classification
Size:
1K - 10K
parquet-converter
commited on
Commit
•
c733bb7
1
Parent(s):
27f567c
Update parquet files
Browse files- README.dataset.txt +0 -7
- README.md +0 -81
- README.roboflow.txt +0 -16
- data/valid.zip → full/painting-style-classification-test.parquet +2 -2
- data/train.zip → full/painting-style-classification-train.parquet +2 -2
- data/test.zip → full/painting-style-classification-validation.parquet +2 -2
- thumbnail.jpg → mini/painting-style-classification-test.parquet +2 -2
- data/valid-mini.zip → mini/painting-style-classification-train.parquet +2 -2
- mini/painting-style-classification-validation.parquet +3 -0
- painting-style-classification.py +0 -114
- split_name_to_num_samples.json +0 -1
README.dataset.txt
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
# undefined > original
|
2 |
-
https://public.roboflow.ai/classification/undefined
|
3 |
-
|
4 |
-
Provided by undefined
|
5 |
-
License: CC BY 4.0
|
6 |
-
|
7 |
-
undefined
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,81 +0,0 @@
|
|
1 |
-
---
|
2 |
-
task_categories:
|
3 |
-
- image-classification
|
4 |
-
tags:
|
5 |
-
- roboflow
|
6 |
-
- roboflow2huggingface
|
7 |
-
|
8 |
-
---
|
9 |
-
|
10 |
-
<div align="center">
|
11 |
-
<img width="640" alt="keremberke/painting-style-classification" src="https://huggingface.co/datasets/keremberke/painting-style-classification/resolve/main/thumbnail.jpg">
|
12 |
-
</div>
|
13 |
-
|
14 |
-
### Dataset Labels
|
15 |
-
|
16 |
-
```
|
17 |
-
['Realism', 'Art_Nouveau_Modern', 'Analytical_Cubism', 'Cubism', 'Expressionism', 'Action_painting', 'Synthetic_Cubism', 'Symbolism', 'Ukiyo_e', 'Naive_Art_Primitivism', 'Post_Impressionism', 'Impressionism', 'Fauvism', 'Rococo', 'Minimalism', 'Mannerism_Late_Renaissance', 'Color_Field_Painting', 'High_Renaissance', 'Romanticism', 'Pop_Art', 'Contemporary_Realism', 'Baroque', 'New_Realism', 'Pointillism', 'Northern_Renaissance', 'Early_Renaissance', 'Abstract_Expressionism']
|
18 |
-
```
|
19 |
-
|
20 |
-
|
21 |
-
### Number of Images
|
22 |
-
|
23 |
-
```json
|
24 |
-
{'valid': 1295, 'train': 4493, 'test': 629}
|
25 |
-
```
|
26 |
-
|
27 |
-
|
28 |
-
### How to Use
|
29 |
-
|
30 |
-
- Install [datasets](https://pypi.org/project/datasets/):
|
31 |
-
|
32 |
-
```bash
|
33 |
-
pip install datasets
|
34 |
-
```
|
35 |
-
|
36 |
-
- Load the dataset:
|
37 |
-
|
38 |
-
```python
|
39 |
-
from datasets import load_dataset
|
40 |
-
|
41 |
-
ds = load_dataset("keremberke/painting-style-classification", name="full")
|
42 |
-
example = ds['train'][0]
|
43 |
-
```
|
44 |
-
|
45 |
-
### Roboflow Dataset Page
|
46 |
-
[https://universe.roboflow.com/art-dataset/wiki-art/dataset/1](https://universe.roboflow.com/art-dataset/wiki-art/dataset/1?ref=roboflow2huggingface)
|
47 |
-
|
48 |
-
### Citation
|
49 |
-
|
50 |
-
```
|
51 |
-
@misc{ wiki-art_dataset,
|
52 |
-
title = { wiki art Dataset },
|
53 |
-
type = { Open Source Dataset },
|
54 |
-
author = { Art Dataset },
|
55 |
-
howpublished = { \\url{ https://universe.roboflow.com/art-dataset/wiki-art } },
|
56 |
-
url = { https://universe.roboflow.com/art-dataset/wiki-art },
|
57 |
-
journal = { Roboflow Universe },
|
58 |
-
publisher = { Roboflow },
|
59 |
-
year = { 2022 },
|
60 |
-
month = { mar },
|
61 |
-
note = { visited on 2023-01-18 },
|
62 |
-
}
|
63 |
-
```
|
64 |
-
|
65 |
-
### License
|
66 |
-
CC BY 4.0
|
67 |
-
|
68 |
-
### Dataset Summary
|
69 |
-
This dataset was exported via roboflow.ai on March 9, 2022 at 1:47 AM GMT
|
70 |
-
|
71 |
-
It includes 6417 images.
|
72 |
-
27 are annotated in folder format.
|
73 |
-
|
74 |
-
The following pre-processing was applied to each image:
|
75 |
-
* Auto-orientation of pixel data (with EXIF-orientation stripping)
|
76 |
-
* Resize to 416x416 (Stretch)
|
77 |
-
|
78 |
-
No image augmentation techniques were applied.
|
79 |
-
|
80 |
-
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.roboflow.txt
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
|
2 |
-
wiki art - v1 original
|
3 |
-
==============================
|
4 |
-
|
5 |
-
This dataset was exported via roboflow.ai on March 9, 2022 at 1:47 AM GMT
|
6 |
-
|
7 |
-
It includes 6417 images.
|
8 |
-
27 are annotated in folder format.
|
9 |
-
|
10 |
-
The following pre-processing was applied to each image:
|
11 |
-
* Auto-orientation of pixel data (with EXIF-orientation stripping)
|
12 |
-
* Resize to 416x416 (Stretch)
|
13 |
-
|
14 |
-
No image augmentation techniques were applied.
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/valid.zip → full/painting-style-classification-test.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3efbb2ed7def6b125507b2caeef50f4d901de73b89719d349756e505ebf75a2c
|
3 |
+
size 21095046
|
data/train.zip → full/painting-style-classification-train.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9385421ee415838a6c1dd4abad4d618c07af36bf43e51393dee2eb470f23ca55
|
3 |
+
size 149975944
|
data/test.zip → full/painting-style-classification-validation.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50e4d7b8342745e29182142d288af36740a099fc7539517c56c9dbfab4a7cc00
|
3 |
+
size 42863901
|
thumbnail.jpg → mini/painting-style-classification-test.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:58c4be62b81d191b940d70de5dccf31d767a742534965513ffd638d69564bed2
|
3 |
+
size 1766643
|
data/valid-mini.zip → mini/painting-style-classification-train.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:58c4be62b81d191b940d70de5dccf31d767a742534965513ffd638d69564bed2
|
3 |
+
size 1766643
|
mini/painting-style-classification-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:58c4be62b81d191b940d70de5dccf31d767a742534965513ffd638d69564bed2
|
3 |
+
size 1766643
|
painting-style-classification.py
DELETED
@@ -1,114 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
-
import datasets
|
4 |
-
from datasets.tasks import ImageClassification
|
5 |
-
|
6 |
-
|
7 |
-
_HOMEPAGE = "https://universe.roboflow.com/art-dataset/wiki-art/dataset/1"
|
8 |
-
_LICENSE = "CC BY 4.0"
|
9 |
-
_CITATION = """\
|
10 |
-
@misc{ wiki-art_dataset,
|
11 |
-
title = { wiki art Dataset },
|
12 |
-
type = { Open Source Dataset },
|
13 |
-
author = { Art Dataset },
|
14 |
-
howpublished = { \\url{ https://universe.roboflow.com/art-dataset/wiki-art } },
|
15 |
-
url = { https://universe.roboflow.com/art-dataset/wiki-art },
|
16 |
-
journal = { Roboflow Universe },
|
17 |
-
publisher = { Roboflow },
|
18 |
-
year = { 2022 },
|
19 |
-
month = { mar },
|
20 |
-
note = { visited on 2023-01-18 },
|
21 |
-
}
|
22 |
-
"""
|
23 |
-
_CATEGORIES = ['Realism', 'Art_Nouveau_Modern', 'Analytical_Cubism', 'Cubism', 'Expressionism', 'Action_painting', 'Synthetic_Cubism', 'Symbolism', 'Ukiyo_e', 'Naive_Art_Primitivism', 'Post_Impressionism', 'Impressionism', 'Fauvism', 'Rococo', 'Minimalism', 'Mannerism_Late_Renaissance', 'Color_Field_Painting', 'High_Renaissance', 'Romanticism', 'Pop_Art', 'Contemporary_Realism', 'Baroque', 'New_Realism', 'Pointillism', 'Northern_Renaissance', 'Early_Renaissance', 'Abstract_Expressionism']
|
24 |
-
|
25 |
-
|
26 |
-
class PAINTINGSTYLECLASSIFICATIONConfig(datasets.BuilderConfig):
|
27 |
-
"""Builder Config for painting-style-classification"""
|
28 |
-
|
29 |
-
def __init__(self, data_urls, **kwargs):
|
30 |
-
"""
|
31 |
-
BuilderConfig for painting-style-classification.
|
32 |
-
|
33 |
-
Args:
|
34 |
-
data_urls: `dict`, name to url to download the zip file from.
|
35 |
-
**kwargs: keyword arguments forwarded to super.
|
36 |
-
"""
|
37 |
-
super(PAINTINGSTYLECLASSIFICATIONConfig, self).__init__(version=datasets.Version("1.0.0"), **kwargs)
|
38 |
-
self.data_urls = data_urls
|
39 |
-
|
40 |
-
|
41 |
-
class PAINTINGSTYLECLASSIFICATION(datasets.GeneratorBasedBuilder):
|
42 |
-
"""painting-style-classification image classification dataset"""
|
43 |
-
|
44 |
-
VERSION = datasets.Version("1.0.0")
|
45 |
-
BUILDER_CONFIGS = [
|
46 |
-
PAINTINGSTYLECLASSIFICATIONConfig(
|
47 |
-
name="full",
|
48 |
-
description="Full version of painting-style-classification dataset.",
|
49 |
-
data_urls={
|
50 |
-
"train": "https://huggingface.co/datasets/keremberke/painting-style-classification/resolve/main/data/train.zip",
|
51 |
-
"validation": "https://huggingface.co/datasets/keremberke/painting-style-classification/resolve/main/data/valid.zip",
|
52 |
-
"test": "https://huggingface.co/datasets/keremberke/painting-style-classification/resolve/main/data/test.zip",
|
53 |
-
}
|
54 |
-
,
|
55 |
-
),
|
56 |
-
PAINTINGSTYLECLASSIFICATIONConfig(
|
57 |
-
name="mini",
|
58 |
-
description="Mini version of painting-style-classification dataset.",
|
59 |
-
data_urls={
|
60 |
-
"train": "https://huggingface.co/datasets/keremberke/painting-style-classification/resolve/main/data/valid-mini.zip",
|
61 |
-
"validation": "https://huggingface.co/datasets/keremberke/painting-style-classification/resolve/main/data/valid-mini.zip",
|
62 |
-
"test": "https://huggingface.co/datasets/keremberke/painting-style-classification/resolve/main/data/valid-mini.zip",
|
63 |
-
},
|
64 |
-
)
|
65 |
-
]
|
66 |
-
|
67 |
-
def _info(self):
|
68 |
-
return datasets.DatasetInfo(
|
69 |
-
features=datasets.Features(
|
70 |
-
{
|
71 |
-
"image_file_path": datasets.Value("string"),
|
72 |
-
"image": datasets.Image(),
|
73 |
-
"labels": datasets.features.ClassLabel(names=_CATEGORIES),
|
74 |
-
}
|
75 |
-
),
|
76 |
-
supervised_keys=("image", "labels"),
|
77 |
-
homepage=_HOMEPAGE,
|
78 |
-
citation=_CITATION,
|
79 |
-
license=_LICENSE,
|
80 |
-
task_templates=[ImageClassification(image_column="image", label_column="labels")],
|
81 |
-
)
|
82 |
-
|
83 |
-
def _split_generators(self, dl_manager):
|
84 |
-
data_files = dl_manager.download_and_extract(self.config.data_urls)
|
85 |
-
return [
|
86 |
-
datasets.SplitGenerator(
|
87 |
-
name=datasets.Split.TRAIN,
|
88 |
-
gen_kwargs={
|
89 |
-
"files": dl_manager.iter_files([data_files["train"]]),
|
90 |
-
},
|
91 |
-
),
|
92 |
-
datasets.SplitGenerator(
|
93 |
-
name=datasets.Split.VALIDATION,
|
94 |
-
gen_kwargs={
|
95 |
-
"files": dl_manager.iter_files([data_files["validation"]]),
|
96 |
-
},
|
97 |
-
),
|
98 |
-
datasets.SplitGenerator(
|
99 |
-
name=datasets.Split.TEST,
|
100 |
-
gen_kwargs={
|
101 |
-
"files": dl_manager.iter_files([data_files["test"]]),
|
102 |
-
},
|
103 |
-
),
|
104 |
-
]
|
105 |
-
|
106 |
-
def _generate_examples(self, files):
|
107 |
-
for i, path in enumerate(files):
|
108 |
-
file_name = os.path.basename(path)
|
109 |
-
if file_name.endswith((".jpg", ".png", ".jpeg", ".bmp", ".tif", ".tiff")):
|
110 |
-
yield i, {
|
111 |
-
"image_file_path": path,
|
112 |
-
"image": path,
|
113 |
-
"labels": os.path.basename(os.path.dirname(path)),
|
114 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
split_name_to_num_samples.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"valid": 1295, "train": 4493, "test": 629}
|
|
|
|