Skip to content

Commit

Permalink
DenseNet161 with SGD
Browse files Browse the repository at this point in the history
  • Loading branch information
Junhong Xu committed Jun 14, 2017
1 parent 8b5a333 commit ffd58e1
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 111 deletions.
4 changes: 2 additions & 2 deletions data/kgdataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ def __len__(self):
return len(self.images)



def randomVerticalFlip(img, u=0.5):
if random.random() < u:
img = cv2.flip(img,0) #np.flipud(img) #cv2.flip(img,0) ##up-down
img = cv2.flip(img, 0) #np.flipud(img) #cv2.flip(img,0) ##up-down
return img


def randomHorizontalFlip(img, u=0.5):
shape=img.shape
if random.random() < u:
Expand Down
Loading

0 comments on commit ffd58e1

Please sign in to comment.