DVC

來源

https://github.com/iterative/dvc

目的

快速備份機器學習中訓練好的資料

建立備份路徑

mkdir -p /home/shared/dvc-cache

安裝

pip install dvc

初始化

dvc init

初始化後資料夾結構

tree -a -L 2

出現 .dc 資料夾與 .dvcignore

加入版控的檔案

dvc add checkpoint

因為是與 git 合併使用,需要將 checkpoint.dvc 加入 git 並推送上去

設定推送路徑

dvc remote add -d upstream /home/shared/dvc-cache

上述指令會修改 ./dvc/config 一樣要 加入 git 修改

推送資料

dvc push

取用

git clone xxxx
dvc pull

查詢差異

dvc diff

將差異備份

dvc commit
dvc diff
執行完畢需將檔案 git commit

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *