updates
This commit is contained in:
parent
4f7fee45ff
commit
1a0385c77d
|
@ -269,7 +269,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing
|
||||||
img, ratiow, ratioh, padw, padh = letterbox(img, new_shape=shape, mode='rect')
|
img, ratiow, ratioh, padw, padh = letterbox(img, new_shape=shape, mode='rect')
|
||||||
else:
|
else:
|
||||||
shape = self.img_size
|
shape = self.img_size
|
||||||
img, ratiow, ratioh, padw, padh = letterbox(img, new_shape=shape, mode='scaleFill')
|
img, ratiow, ratioh, padw, padh = letterbox(img, new_shape=shape, mode='square')
|
||||||
|
|
||||||
# Load labels
|
# Load labels
|
||||||
labels = []
|
labels = []
|
||||||
|
|
|
@ -95,6 +95,8 @@ python3 test.py --data ../supermarket2/supermarket2.data --weights ../darknet/ba
|
||||||
|
|
||||||
|
|
||||||
# Debug/Development
|
# Debug/Development
|
||||||
python3 train.py --data data/coco.data --img-size 416 --batch-size 8 --accumulate 8
|
python3 train.py --data data/coco.data --img-size 320 --single-scale --batch-size 32 --accumulate 2 --epochs 1
|
||||||
|
python3 test.py --weights weights/latest.pt --cfg cfg/yolov3-spp.cfg --img-size 320
|
||||||
|
|
||||||
gsutil cp evolve.txt gs://ultralytics
|
gsutil cp evolve.txt gs://ultralytics
|
||||||
sudo shutdown
|
sudo shutdown
|
||||||
|
|
Loading…
Reference in New Issue