Skip to content

Commit

Permalink
dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
Snailpong committed Jan 12, 2021
1 parent 972a185 commit 3d90d8a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions filter_constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
Q_TOTAL = Q_ANGLE * Q_TENSOR
FILTER_VOL = PATCH_SIZE ** 3

TRAIN_DIV = 3
SAMPLE_RATE = 3
TRAIN_DIV = 5
SAMPLE_RATE = 1
SHARPEN = 'False'
BLEND_THRESHOLD = 10

Expand Down
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def train_qv(im_LR, im_HR, w, kmeans, std, Q, V, count):
file_name = file.split('\\')[-1].split('.')[0]
filestart = time.time()

if file_idx >= 100:
if file_idx >= 30:
break

if file in finished_files:
Expand Down
9 changes: 4 additions & 5 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
def make_dataset(dir):
images = []
assert os.path.isdir(dir), '%s is not a valid directory' % dir
for root, _, fnames in sorted(os.walk(dir)):
for fname in fnames:
if fname.endswith('.nii.gz'):
path = os.path.join(root, fname)
images.append(path)
for fname in sorted(os.listdir(dir)):
if fname.endswith('.nii.gz'):
path = os.path.join(dir, fname)
images.append(path)
return images


Expand Down

0 comments on commit 3d90d8a

Please sign in to comment.