-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.txt
32 lines (24 loc) · 999 Bytes
/
commands.txt
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
29
30
31
32
#clone yolo
git clone https://github.com/ultralytics/yolov5.git
#install requirements
cd yolov5
pip3 install -r requirements.txt
#install weights
#change python to python3 in /content/yolov5/weights/download_weights.sh
weights/download_weights.sh
#train
python3 /content/yolov5/train.py --batch 8 --epochs 300 --data /content/Diatom-Non-neuronal-Cognition/Dataset/30_bbg/related_files/diatom.yaml --cfg /content/yolov5/models/yolov5m.yaml --weights /content/yolov5/yolov5m.pt --device 0
#predict
python3 detect.py --source /content/Diatom-Non-neuronal-Cognition/Dataset/30_bbg/imgs --weights /content/yolov5/runs/train/exp/weights/best.pt --conf 0.4
#uninstall tensorboard from python2 and python3
pip uninstall tensorboard
pip3 uninstall tensorboard
#reinstall
pip3 install tensorboard
#tensorboard
tensorboard --logdir=runs/train
#javascript colab
function ClickConnect(){
console.log("Working");
document.querySelector("colab-toolbar-button").click()
}setInterval(ClickConnect,60000)