-
Notifications
You must be signed in to change notification settings - Fork 0
Utilities
Farley Lai edited this page Apr 30, 2021
·
1 revision
Compilation of useful code snippets using ML:
alias tarbz='tar --use-compress-program=lbzip2'
tarbz -cfh file.tar.gz /path/to/dataset
find data/store/videos/train/*/* -maxdepth 0 -type f | wc
find data/store/videos/train/*/* -maxdepth 0 -type d | wc
find frames-1fps/val -type d -empty | wc
find data/store/videos/train/*/* -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u
from ml import hub
path = 'weights/yolov5x-store.pt'
hub.upload_s3(path, 'pretrained', 'detection/yolo')
hub.download_s3('pretrained', 'detection/yolo/yolov5x-store.pt')
from ml import hub
fid = '1I7OjhaomWqd8Quf7o5suwLloRlY0THbp'
path = 'WiderPerson.zip'
hub.download_gdrive(fid, path)