File tree Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
One_YOLOv5_ROOT=/home/fengwen/one-yolov5
3
- Weights=/home/fengwen/one-yolov5/runs/yolov5n
3
+ Weights=/home/fengwen/one-yolov5/runs/yolov5s
4
4
Device=0 # cuda:0
5
- Model=yolov5n
5
+ Model=yolov5s
6
6
Test_Ci_Project=' test_ci_project'
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
3
4
bash train_default_test.sh config.sh
4
5
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
-
3
2
source $1
4
3
5
4
set -e # Error interrupt encountered
@@ -13,10 +12,11 @@ rm $ProjectPath -rf
13
12
14
13
echo " Test classify"
15
14
b=$ProjectPath /exp/weights/best # best.of checkpoint
16
- python train.py --imgsz 64 --batch 32 --weights ${Weights} -cls.of --epochs 1 --project $ProjectPath # train
17
15
18
- python val.py --batch 32 --weights ${b} .of --device ${Device} # val
16
+ python classify/train.py --imgsz 64 --batch 32 --model ${Weights} -cls.of --epochs 1 --project $ProjectPath # train
17
+
18
+ python classify/val.py --batch 32 --weights ${b} .of --device ${Device} --data /home/fengwen/datasets/imagenette160 # val
19
19
20
- python detect .py --weights ${b} .of --device ${Device} # detect
20
+ python classify/predict .py --weights ${b} .of --device ${Device} --source data/images/ # detect
21
21
22
22
python export.py --weights $b .of --img 64 --include onnx --device ${Device} # export
You canβt perform that action at this time.
0 commit comments