devourthemoon commited on
Commit
50787fb
1 Parent(s): 0f57f2c

Updated to use LAION2B dataset

Browse files
.gitattributes CHANGED
@@ -51,3 +51,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
51
  *.webp filter=lfs diff=lfs merge=lfs -text
52
  laion400m-filtered-publicdomain.csv filter=lfs diff=lfs merge=lfs -text
53
  laion-filtered-publicdomain.csv filter=lfs diff=lfs merge=lfs -text
 
 
51
  *.webp filter=lfs diff=lfs merge=lfs -text
52
  laion400m-filtered-publicdomain.csv filter=lfs diff=lfs merge=lfs -text
53
  laion-filtered-publicdomain.csv filter=lfs diff=lfs merge=lfs -text
54
+ laion2B-filtered-publicdomain.parquet filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -10,7 +10,7 @@ pretty_name: laion-publicdomain
10
  size_categories:
11
  - 100K<n<1M
12
  source_datasets:
13
- -laion/laion400m
14
  tags:
15
  - laion
16
  task_categories:
@@ -46,13 +46,13 @@ task_categories:
46
 
47
  ### Dataset Summary
48
 
49
- This dataset contains metadata about images from the [LAION400m dataset](https://huggingface.co/laion/laion400m-) curated to a reasonable best guess of 'ethically sourced' images.
50
 
51
  ## Dataset Structure
52
 
53
  ### Data Fields
54
 
55
- See the [laion400m](https://laion.ai/blog/laion-400-open-dataset/) release notes.
56
 
57
  ## Dataset Creation
58
 
@@ -64,13 +64,13 @@ and archive.org is a website that archives public domain images.
64
 
65
  ### Source Data
66
 
67
- The source dataset is at laion/laion400m and is not affiliated with this project.
68
 
69
  ### Annotations
70
 
71
  #### Annotation process
72
 
73
- Laion400m is assembled from Common Crawl data.
74
 
75
  ### Personal and Sensitive Information
76
 
@@ -88,9 +88,9 @@ Laion400m is assembled from Common Crawl data.
88
 
89
  This is a long term goal of this project with the ideal being the generation of 'personalized' AI models for artists. Contact @devourthemoon on Twitter if this interests you.
90
 
91
- #### Is this dataset as robust as e.g. LAION400m?
92
 
93
- Absolutely not. About 0.15% of the images in the LAION400m dataset matched the filters, leading to just over 600k images in this dataset.
94
 
95
  ### Discussion of Biases
96
 
@@ -105,4 +105,4 @@ Absolutely not. About 0.15% of the images in the LAION400m dataset matched the f
105
  ### Licensing Information
106
 
107
  When using images from this dataset, please acknowledge the combination of Creative Commons licenses.
108
- This dataset itself follows CC-BY-4.0
 
10
  size_categories:
11
  - 100K<n<1M
12
  source_datasets:
13
+ -laion/laion2B-en
14
  tags:
15
  - laion
16
  task_categories:
 
46
 
47
  ### Dataset Summary
48
 
49
+ This dataset contains metadata about images from the [LAION2B-eb dataset](https://huggingface.co/laion/laion2B-en) curated to a reasonable best guess of 'ethically sourced' images.
50
 
51
  ## Dataset Structure
52
 
53
  ### Data Fields
54
 
55
+ See the [laion2B](https://laion.ai/blog/laion-400-open-dataset/) release notes.
56
 
57
  ## Dataset Creation
58
 
 
64
 
65
  ### Source Data
66
 
67
+ The source dataset is at laion/laion2B-en and is not affiliated with this project.
68
 
69
  ### Annotations
70
 
71
  #### Annotation process
72
 
73
+ Laion2B-en is assembled from Common Crawl data.
74
 
75
  ### Personal and Sensitive Information
76
 
 
88
 
89
  This is a long term goal of this project with the ideal being the generation of 'personalized' AI models for artists. Contact @devourthemoon on Twitter if this interests you.
90
 
91
+ #### Is this dataset as robust as e.g. LAION2B?
92
 
93
+ Absolutely not. About 0.17% of the images in the LAION2B dataset matched the filters, leading to just over 600k images in this dataset.
94
 
95
  ### Discussion of Biases
96
 
 
105
  ### Licensing Information
106
 
107
  When using images from this dataset, please acknowledge the combination of Creative Commons licenses.
108
+ This dataset itself follows CC-BY-4.0
laion-filtered-publicdomain.csv → laion2B-filtered-publicdomain.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:59065755d44972dfe2b02b72d21928b9a34b82f4b63f0c13de92e52ccb59831a
3
- size 151248547
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f100a613f90a37581e0a022af7350871e809092851e3ef21d288d12ee4f50ae
3
+ size 452437588
laion2B-filtered-publicdomain.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ # coding: utf-8
3
+
4
+ from datasets import load_dataset
5
+ import datasets
6
+ config = datasets.DownloadConfig()
7
+ config.resume_download = True
8
+ dataset = load_dataset("laion/laion2B-en", split='train', download_config=config)
9
+ #datasets.logging.set_verbosity_debug()
10
+
11
+ # The list of known public domain URLs is currently len 1. Please suggest more!
12
+ publicdomain = dataset.filter(lambda item: (item['LICENSE'] is not None and 'creativecommons' in item['LICENSE']) or (item['URL'] is not None and ".archive.org/" in item['URL']))
13
+
14
+ print(next(iter(publicdomain)))
15
+
16
+ publicdomain
17
+ publicdomain.to_parquet("laion5b-filtered-publicdomain.parquet")