updates
This commit is contained in:
parent
362b41436a
commit
3fe3951268
|
@ -21,7 +21,6 @@ def detect(
|
|||
save_txt=False,
|
||||
save_images=False,
|
||||
):
|
||||
|
||||
device = torch_utils.select_device()
|
||||
print("Using device: \"{}\"".format(device))
|
||||
|
||||
|
@ -150,7 +149,6 @@ if __name__ == '__main__':
|
|||
parser.add_argument('--output-folder', type=str, default='output', help='path to outputs')
|
||||
parser.add_argument('--plot-flag', type=bool, default=True)
|
||||
parser.add_argument('--txt-out', type=bool, default=False)
|
||||
|
||||
parser.add_argument('--cfg', type=str, default='cfg/yolov3.cfg', help='cfg file path')
|
||||
parser.add_argument('--data-config', type=str, default='cfg/coco.data', help='path to data config file')
|
||||
parser.add_argument('--conf-thres', type=float, default=0.50, help='object confidence threshold')
|
||||
|
|
1
test.py
1
test.py
|
@ -126,7 +126,6 @@ def test(
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
parser = argparse.ArgumentParser(prog='test.py')
|
||||
parser.add_argument('--batch-size', type=int, default=32, help='size of each image batch')
|
||||
parser.add_argument('--cfg', type=str, default='cfg/yolov3.cfg', help='path to model config file')
|
||||
|
|
8
train.py
8
train.py
|
@ -12,9 +12,7 @@ from utils import torch_utils
|
|||
import test
|
||||
|
||||
DARKNET_WEIGHTS_FILENAME = 'darknet53.conv.74'
|
||||
DARKNET_WEIGHTS_URL = 'https://pjreddie.com/media/files/{}'.format(
|
||||
DARKNET_WEIGHTS_FILENAME
|
||||
)
|
||||
DARKNET_WEIGHTS_URL = 'https://pjreddie.com/media/files/{}'.format(DARKNET_WEIGHTS_FILENAME)
|
||||
|
||||
|
||||
def train(
|
||||
|
@ -30,7 +28,6 @@ def train(
|
|||
freeze_backbone=True,
|
||||
var=0,
|
||||
):
|
||||
|
||||
device = torch_utils.select_device()
|
||||
print("Using device: \"{}\"".format(device))
|
||||
|
||||
|
@ -236,13 +233,12 @@ def train(
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--epochs', type=int, default=100, help='number of epochs')
|
||||
parser.add_argument('--batch-size', type=int, default=16, help='size of each image batch')
|
||||
parser.add_argument('--data-config', type=str, default='cfg/coco.data', help='path to data config file')
|
||||
parser.add_argument('--cfg', type=str, default='cfg/yolov3.cfg', help='cfg file path')
|
||||
parser.add_argument('--multi-scale', default=False, help='random image sizes per batch 320 - 608')
|
||||
parser.add_argument('--multi-scale', action='store_true', help='random image sizes per batch 320 - 608')
|
||||
parser.add_argument('--img-size', type=int, default=32 * 13, help='pixels')
|
||||
parser.add_argument('--weights-path', type=str, default='weights', help='path to store weights')
|
||||
parser.add_argument('--resume', action='store_true', help='resume training flag')
|
||||
|
|
Loading…
Reference in New Issue