My DL-CodeBase 设计

Registry Mechanism

  • 构建字典(注册),keys为模块名,vals为模块类对象
  • 通过预定义的设置文件,读取模块名,进行实例化 (instantiating)
  • 符合 开闭原则,避免修改,方便扩展

环境安装

  • pip freeze > requirements.txt
  • pip install -r requirements.txt
  • conda list -e > requirements.txt
  • conda install --yes --file requirements.txt
  • while read requirement; do conda install --yes $requirement; done < requirements.txt

ERRORs

  • Cannot load backend ‘TkAgg’ which requires the ‘tk’ interactive framework, as ‘headless’ is currently runnin
import matplotlib
# matplotlib.use('TkAgg') # 使用该行 报错TkAgg/tk
import matplotlib.pyplot as plt
  • setup evaluation/vot_benchmark/pysot/utils/setup.py
python setup.py build_ext --inplace

trackdat 下载解压

  • VOT_YEAR=2018 bash scripts/download_vot.sh dl/vot2018
  • bash scripts/unpack_vot.sh dl/vot2018 $temp/vot2018
  • 可选 压缩 tar -cf tar/original/vot2018.tar -C $temp vot2018

架构

My DL-CodeBase 设计_第1张图片
My DL-CodeBase 设计_第2张图片

Hyper-Parameter Search

  • val集上hpo
  • naive Random Search algorithm
  • sklearn.model_selection.RandomizedSearchCV

你可能感兴趣的:(DL,Learning)