Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip_package_creation_second_attempt #3773

Merged
merged 20 commits into from
Jun 26, 2021
Prev Previous commit
Next Next commit
test
  • Loading branch information
SkalskiP committed Jun 25, 2021
commit 0bad8c75b501baab6fc301ffc0b026d72d4473ed
10 changes: 5 additions & 5 deletions .github/workflows/ci-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ jobs:
python yolov5/detect.py --weights ${{ matrix.model }}.pt --device $di
python yolov5/detect.py --weights runs/train/exp/weights/last.pt --device $di
# test
python yolov5/test.py --img 128 --batch 16 --weights ${{ matrix.model }}.pt --device $di
python yolov5/test.py --img 128 --batch 16 --weights runs/train/exp/weights/last.pt --device $di
# python yolov5/test.py --img 128 --batch 16 --weights ${{ matrix.model }}.pt --device $di
# python yolov5/test.py --img 128 --batch 16 --weights runs/train/exp/weights/last.pt --device $di

python hubconf.py # hub
python yolov5/models/yolo.py --cfg ${{ matrix.model }}.yaml # inspect
python yolov5/export.py --img 128 --batch 1 --weights ${{ matrix.model }}.pt # export
# python hubconf.py # hub
# python yolov5/models/yolo.py --cfg ${{ matrix.model }}.yaml # inspect
# python yolov5/export.py --img 128 --batch 1 --weights ${{ matrix.model }}.pt # export
shell: bash
2 changes: 1 addition & 1 deletion yolov5/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def run(weights='yolov5s.pt', # model.pt path(s)
def parse_opt():
parser = argparse.ArgumentParser()
parser.add_argument('--weights', nargs='+', type=str, default='yolov5s.pt', help='model.pt path(s)')
parser.add_argument('--source', type=str, default='data/images', help='file/dir/URL/glob, 0 for webcam')
parser.add_argument('--source', type=str, default='yolov5/data/images', help='file/dir/URL/glob, 0 for webcam')
parser.add_argument('--imgsz', '--img', '--img-size', type=int, default=640, help='inference size (pixels)')
parser.add_argument('--conf-thres', type=float, default=0.25, help='confidence threshold')
parser.add_argument('--iou-thres', type=float, default=0.45, help='NMS IoU threshold')
Expand Down