-
Notifications
You must be signed in to change notification settings - Fork 3
/
get_train_dev_data_v2.py
30 lines (27 loc) · 1.18 KB
/
get_train_dev_data_v2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
=========================================================
Title: ImageArg Shared Task Code - Dataset Downloader
---------------------------------------------------------
Warning: The dataset to download should only be used for
scientific or research purposes. Any other use is
explicitly prohibited. Any participants are not allowed
to redistribute the dataset per Twitter Developer Policy:
https://developer.twitter.com/en/developer-terms/policy.
---------------------------------------------------------
Notice: This code is managed by ImageArg Shared Task
(https://imagearg.github.io/).
---------------------------------------------------------
Data: 2023-10-05
=========================================================
"""
import platform
if __name__ == '__main__':
if platform.processor() == "arm":
from plugins.macos_silicon import get_train_dev_data
elif platform.system() == "Darwin" and platform.machine() == "x86_64":
from plugins.macos_intel import get_train_dev_data
elif platform.system() == "Linux" and platform.machine() == "x86_64":
from plugins.ubuntu import get_train_dev_data
else:
raise "not supported system!"
get_train_dev_data()