Skip to content

Commit

Permalink
trying to remove mosaic
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabelooussovbtis committed Nov 1, 2022
1 parent 258acda commit 7f68636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def train(hyp, opt, device, callbacks): # hyp is path/to/hyp.yaml or hyp dictio
gs,
single_cls,
hyp=hyp,
augment=False,
augment=True,
cache=None if opt.cache == 'val' else opt.cache,
rect=opt.rect,
rank=LOCAL_RANK,
Expand Down Expand Up @@ -309,7 +309,7 @@ def train(hyp, opt, device, callbacks): # hyp is path/to/hyp.yaml or hyp dictio
gs,
single_cls,
hyp=hyp,
augment=False,
augment=True,
cache=None if opt.cache == 'val' else opt.cache,
rect=opt.rect,
rank=LOCAL_RANK,
Expand Down
3 changes: 2 additions & 1 deletion utils/dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def __init__(self,
path,
img_size=640,
batch_size=16,
augment=False,
augment=True,
hyp=None,
rect=False,
image_weights=False,
Expand All @@ -418,6 +418,7 @@ def __init__(self,
self.image_weights = image_weights
self.rect = False if image_weights else rect
self.mosaic = self.augment and not self.rect # load 4 images at a time into a mosaic (only during training)
self.mosaic = False
self.mosaic_border = [-img_size // 2, -img_size // 2]
self.stride = stride
self.path = path
Expand Down

0 comments on commit 7f68636

Please sign in to comment.