Skip to content

Commit

Permalink
Update load_corrupted_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xjtushujun committed May 20, 2020
1 parent 1fdb779 commit bd1fd3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions load_corrupted_data.py
Expand Up @@ -76,7 +76,7 @@ def __init__(self, root='', train=True, meta=True, num_meta=1000,
self.meta = meta
self.corruption_prob = corruption_prob
self.num_meta = num_meta

np.random.seed(seed)
if download:
self.download()

Expand Down Expand Up @@ -177,7 +177,7 @@ def __init__(self, root='', train=True, meta=True, num_meta=1000,
else:
assert False, "Invalid corruption type '{}' given. Must be in {'unif', 'flip', 'hierarchical'}".format(corruption_type)

np.random.seed(seed)

if corruption_type == 'clabels':
mean = [x / 255 for x in [125.3, 123.0, 113.9]]
std = [x / 255 for x in [63.0, 62.1, 66.7]]
Expand Down

0 comments on commit bd1fd3e

Please sign in to comment.