Skip to content

Commit 0573e56

Browse files
committed
fix perfect test
1 parent 5a3c08c commit 0573e56

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

β€Žoneflow_train_test/config.shβ€Ž

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
One_YOLOv5_ROOT=/home/fengwen/one-yolov5
3-
Weights=/home/fengwen/one-yolov5/runs/yolov5n
3+
Weights=/home/fengwen/one-yolov5/runs/yolov5s
44
Device=0 # cuda:0
5-
Model=yolov5n
5+
Model=yolov5s
66
Test_Ci_Project='test_ci_project'

β€Žoneflow_train_test/train_all_test.shβ€Ž

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

34
bash train_default_test.sh config.sh
45

β€Žoneflow_train_test/train_cls_test.shβ€Ž

100644100755
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
source $1
43

54
set -e # Error interrupt encountered
@@ -13,10 +12,11 @@ rm $ProjectPath -rf
1312

1413
echo "Test classify"
1514
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
1715

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
1919

20-
python detect.py --weights ${b}.of --device ${Device} # detect
20+
python classify/predict.py --weights ${b}.of --device ${Device} --source data/images/ # detect
2121

2222
python export.py --weights $b.of --img 64 --include onnx --device ${Device} # export

β€Žoneflow_train_test/train_default_test.shβ€Ž

100644100755
File mode changed.

β€Žoneflow_train_test/train_seg_test.shβ€Ž

100644100755
File mode changed.

0 commit comments

Comments
Β (0)