Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang Liu committed Apr 25, 2019
1 parent 4857203 commit 6eae16a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # sets device for model and PyTorch tensors

# Model parameters
im_size = 224
im_size = 112
channel = 3

# Training parameters
Expand Down
4 changes: 2 additions & 2 deletions extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ def extract(filename):


if __name__ == "__main__":
if not os.path.isdir('data/cron20190326_resized'):
extract('data/cron20190326_resized.zip')
if not os.path.isdir('data/data/frame/cron20190326'):
extract('data/cron20190326.zip')
6 changes: 3 additions & 3 deletions resize.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import cv2 as cv
from tqdm import tqdm
from config import im_size

from config import im_size

new_folder = r'D:\Users\foamliu\data\Image-Matching\data\cron20190326_resized'
old_folder = r'D:\Users\foamliu\data\Image-Matching\data\data\frame\cron20190326'
new_folder = 'data/cron20190326_resized'
old_folder = 'data/data/frame/cron20190326'


def resize_images(d):
Expand Down

0 comments on commit 6eae16a

Please sign in to comment.