updates
This commit is contained in:
parent
56badeef8a
commit
6da62e433d
2
test.py
2
test.py
|
@ -32,7 +32,7 @@ num_classes = int(data_config['classes'])
|
|||
model = Darknet(opt.cfg, opt.img_size)
|
||||
|
||||
# Load weights
|
||||
weights_path = 'checkpoints/yolov3.pt'
|
||||
weights_path = 'checkpoints/yolov3.weights'
|
||||
if weights_path.endswith('.weights'): # darknet format
|
||||
load_weights(model, weights_path)
|
||||
elif weights_path.endswith('.pt'): # pytorch format
|
||||
|
|
|
@ -68,7 +68,7 @@ class ListDataset(): # for training
|
|||
if platform == 'darwin': # macos
|
||||
self.img_files = [path.replace('\n', '').replace('/images', '/Users/glennjocher/Downloads/DATA/coco/images')
|
||||
for path in self.img_files]
|
||||
else:
|
||||
else: # linux (gcp cloud)
|
||||
self.img_files = [path.replace('\n', '').replace('/images', '../coco/images') for path in self.img_files]
|
||||
|
||||
self.label_files = [path.replace('images', 'labels').replace('.png', '.txt').replace('.jpg', '.txt') for path in
|
||||
|
|
Loading…
Reference in New Issue