Browse Source

Merge pull request #107 from Lornatang/fix-reference-bugs

fix refrence bug
5.0
Glenn Jocher GitHub 4 years ago
parent
commit
cdf1eac9f7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions
  1. +3
    -1
      detect.py
  2. +1
    -0
      train.py

+ 3
- 1
detect.py View File

@@ -1,5 +1,7 @@
import argparse

import torch.backends.cudnn as cudnn

from utils.datasets import *
from utils.utils import *

@@ -36,7 +38,7 @@ def detect(save_img=False):
vid_path, vid_writer = None, None
if webcam:
view_img = True
torch.backends.cudnn.benchmark = True # set True to speed up constant image size inference
cudnn.benchmark = True # set True to speed up constant image size inference
dataset = LoadStreams(source, img_size=imgsz)
else:
save_img = True

+ 1
- 0
train.py View File

@@ -4,6 +4,7 @@ import torch.distributed as dist
import torch.nn.functional as F
import torch.optim as optim
import torch.optim.lr_scheduler as lr_scheduler
import torch.utils.data
from torch.utils.tensorboard import SummaryWriter

import test # import test.py to get mAP after each epoch

Loading…
Cancel
Save