seanghay commited on
Commit
5f518ac
1 Parent(s): 8073a26

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -0
README.md CHANGED
@@ -1,3 +1,30 @@
1
  ---
2
  license: cc-by-4.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
  ---
4
+
5
+ ## Dataset Creation Info
6
+
7
+ All images were downloaded from [khmerfonts.info](https://khmerfonts.info) by using a script below:
8
+
9
+ ```python
10
+ with open("filelist.txt", "w") as outfile:
11
+ items = [
12
+ f"https://www.khmerfonts.info/preview.php?font={font + 1}&sample={sample + 1}\n\tout=khmerfonts-{font + 1}-{sample + 1}.png"
13
+ for font in range(2972) # maximum id at the moment
14
+ for sample in range(10)
15
+ ]
16
+ outfile.write("\n".join(items))
17
+ ```
18
+
19
+ Download all files using `aria2c`
20
+
21
+ ```shell
22
+ aria2c -i filelist.txt -d data -j16
23
+ ```
24
+
25
+ Find 0-byte files and delete
26
+
27
+ ```shell
28
+ find data/ -size 0 -delete
29
+ ``
30
+