wendlerc commited on
Commit
8df61d5
1 Parent(s): d441671

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -3
README.md CHANGED
@@ -1,10 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  *This dataset has been created by Stability AI and LAION.*
2
 
3
- Text written on a sheet of paper rendered into 360 degree images and onto textures using: https://github.com/GbotHQ/ocr-dataset-rendering
 
4
 
5
- Browse a few examples: https://colab.research.google.com/drive/1o0rZhtY9aeurzNrAbu6nJypULSIIcf1v?authuser=1
 
 
 
 
 
6
 
7
  ![Line level annotations](https://drive.google.com/uc?export=view&id=1T8aakgpgdW6D4gNuN7wXTqoqIayL2x9t)
8
  ![Character level annotations](https://drive.google.com/uc?export=view&id=1Kv2V9ruD_U-7qkEsbvL0Izq1AyrRU2ra)
9
 
10
- Note that, the first 10 million examples are in the root folder of this dataset repository and the remaining 2 million are in ./remaining (due to the constraint on number of files per directory).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - text-to-image
4
+ - image-to-text
5
+ language:
6
+ - en
7
+ tags:
8
+ - OCR
9
+ - blender
10
+ - LAION
11
+ - Stability
12
+ size_categories:
13
+ - 10M<n<100M
14
+ ---
15
  *This dataset has been created by Stability AI and LAION.*
16
 
17
+ This dataset contains 12 million 1024x1024 images of handwritten text written on a digital 3D sheet of paper generated using Blender geometry nodes and rendered using Blender Cycles. The text has varying font size, color, and rotation, and the paper was rendered under random lighting conditions.
18
+ Note that, the first 10 million examples are in the root folder of this dataset repository and the remaining 2 million are in ./remaining (due to the constraint on number of files per directory).
19
 
20
+ It was generated with the script https://github.com/GbotHQ/ocr-dataset-rendering/, which utilizes:
21
+ - ~8000 fonts from https://www.urbanfonts.com/free-fonts.htm and https://www.fontspace.com/
22
+ - 643 CC0 HDRIs from https://polyhaven.com/
23
+ - 1837 CC0 PRB materials from https://ambientcg.com/
24
+ - random sentences sampled from https://huggingface.co/datasets/ChristophSchuhmann/wikipedia-en-nov22-1-sentence-level and https://huggingface.co/datasets/ChristophSchuhmann/1-sentence-level-gutenberg-en_arxiv_pubmed_soda
25
+ to generate example images as shown below.
26
 
27
  ![Line level annotations](https://drive.google.com/uc?export=view&id=1T8aakgpgdW6D4gNuN7wXTqoqIayL2x9t)
28
  ![Character level annotations](https://drive.google.com/uc?export=view&id=1Kv2V9ruD_U-7qkEsbvL0Izq1AyrRU2ra)
29
 
30
+ The dataset contains both line-level, as well as character level annotations for each example. The annotations are stored in the accompanying json files and are of the following form:
31
+ ```
32
+ {
33
+ 'ocr_annotation':
34
+ {'bounding_boxes': [[[145.0, 370.0], [788.0, 353.0], [827.0, 633.0], [182.0, 669.0]]],
35
+ 'text': ['Joe.'],
36
+ 'bb_relative': [[[0.1416015625, 0.361328125], [0.76953125, 0.3447265625], [0.8076171875, 0.6181640625], [0.177734375, 0.6533203125]]],
37
+ 'char': ['J', 'o', 'e', '.'],
38
+ 'char_idx': [0, 1, 2, 3],
39
+ 'bb_character_level': [[[145.0, 370.0], [346.0, 365.0], [382.0, 651.0], [181.0, 662.0]], [[375.0, 438.0], [557.0, 431.0], [585.0, 640.0], [402.0, 650.0]], [[578.0, 440.0], [744.0, 434.0], [771.0, 629.0], [604.0, 638.0]], [[778.0, 591.0], [821.0, 589.0], [827.0, 633.0], [784.0, 635.0]]],
40
+ 'font_path': '/fsx/home-wendlerc/blender-dataset/assets/fonts/fontcollection/HelloScribbles-axapm.ttf',
41
+ 'font_color': [17, 25, 231],
42
+ 'text_rotation_angle': 7},
43
+ 'width':1024,
44
+ 'height':1024,
45
+ }
46
+ ```
47
+
48
+
49
+ Browse a few more examples here: https://colab.research.google.com/drive/1o0rZhtY9aeurzNrAbu6nJypULSIIcf1v?authuser=1