v2ray commited on
Commit
91b029f
·
1 Parent(s): dd02ade

Now include Minecraft!

Browse files
Files changed (3) hide show
  1. model_tags.txt +0 -0
  2. scrape_gel.py +10 -2
  3. tagging_train/full_1m.tar +0 -3
model_tags.txt CHANGED
The diff for this file is too large to render. See raw diff
 
scrape_gel.py CHANGED
@@ -30,8 +30,16 @@ def get_tags(soup, preserve_meta_tags):
30
  type_tag_list_dict[class_name[9:]].append(element.find("a", recursive=False).contents[0].replace("_", " "))
31
  tags = []
32
  for type, tag_list in type_tag_list_dict.items():
33
- if not preserve_meta_tags and type in {"artist", "copyright", "metadata"}:
34
- continue
 
 
 
 
 
 
 
 
35
  tags += tag_list
36
  return tags
37
 
 
30
  type_tag_list_dict[class_name[9:]].append(element.find("a", recursive=False).contents[0].replace("_", " "))
31
  tags = []
32
  for type, tag_list in type_tag_list_dict.items():
33
+ if not preserve_meta_tags:
34
+ match type:
35
+ case "copyright":
36
+ if "minecraft" in tag_list:
37
+ tags.append("minecraft")
38
+ continue
39
+ case "artist":
40
+ continue
41
+ case "metadata":
42
+ continue
43
  tags += tag_list
44
  return tags
45
 
tagging_train/full_1m.tar DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a43ca01f1e50724638a168ad1dba59fb36d2ea84113c268ef811a6e8bb23ca9c
3
- size 22290186240