Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
enlin adeddaab09 | 2 years ago | |
---|---|---|
.. | ||
__init__.py | 2 years ago | |
darts_retrain.py | 2 years ago | |
darts_select.py | 2 years ago | |
darts_train.py | 2 years ago | |
dartsmutator.py | 2 years ago | |
dartstrainer.py | 2 years ago | |
datasets.py | 2 years ago | |
model.py | 2 years ago | |
ops.py | 2 years ago | |
readme.md | 2 years ago | |
utils.py | 2 years ago |
python darts_train.py --data_dir '../data/' --result_path 'trial_id/result.json' --log_path 'trial_id/log' --search_space_path 'experiment_id/search_space.json' --best_selected_space_path 'experiment_id/best_selected_space.json' --trial_id 0 --layers 8 --model_lr 0.025 --arch_lr 3e-4 --epochs 1 --batch_size 64 --channels 16
Note:
here --epochs 2
just for debug
python darts_select.py --best_selected_space_path 'experiment_id/best_selected_space.json'
python darts_retrain.py --data_dir '../data/' --result_path 'trial_id/result.json' --log_path 'trial_id/log' --best_selected_space_path 'experiment_id/best_selected_space.json' --best_checkpoint_dir 'experiment_id/' --trial_id 0 --batch_size 96 --epochs 1 --lr 0.025 --layers 20 --channels 36
result.json
{'type': 'Accuracy', 'result': {'sequence': 0, 'category': 'epoch', 'value': 0.1}}
{'type': 'Accuracy', 'result': {'sequence': 1, 'category': 'epoch', 'value': 0.0}}
{'type': 'Accuracy', 'result': {'sequence': 2, 'category': 'epoch', 'value': 0.0}}
{'type': 'Accuracy', 'result': {'sequence': 3, 'category': 'epoch', 'value': 0.0}}
{'type': 'Accuracy', 'result': {'sequence': 4, 'category': 'epoch', 'value': 0.0}}
{'type': 'Cost_time', 'result': {'value': '41.614346981048584 s'}}
search_space.json
{
"op_list": {
"_type": "layer_choice",
"_value": [
"maxpool",
"avgpool",
"skipconnect",
"sepconv3x3",
"sepconv5x5",
"dilconv3x3",
"dilconv5x5",
"none"
]
},
"search_space": {
"normal_n2_p0": "op_list",
"normal_n2_p1": "op_list",
"normal_n2_switch": {
"_type": "input_choice",
"_value": {
"candidates": [
"normal_n2_p0",
"normal_n2_p1"
],
"n_chosen": 2
}
},
...
}
best_selected_space.json
{
"normal_n2_p0": "dilconv5x5",
"normal_n2_p1": "dilconv5x5",
"normal_n2_switch": [
"normal_n2_p0",
"normal_n2_p1"
],
"normal_n3_p0": "sepconv3x3",
"normal_n3_p1": "dilconv5x5",
"normal_n3_p2": [],
"normal_n3_switch": [
"normal_n3_p0",
"normal_n3_p1"
],
"normal_n4_p0": [],
"normal_n4_p1": "dilconv5x5",
"normal_n4_p2": "sepconv5x5",
"normal_n4_p3": [],
"normal_n4_switch": [
"normal_n4_p1",
"normal_n4_p2"
],
...
}
一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能
Java Vue Python Text JavaScript other