Skip to content

Commit

Permalink
Shuffle fetched images
Browse files Browse the repository at this point in the history
  • Loading branch information
jeylau committed Jun 5, 2020
1 parent 899f650 commit d915c2c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions model.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from skimage import io
import time

import custom_types
import pandas as pd
import random
import time
from skimage import io

import custom_types


class User:
Expand All @@ -24,7 +24,8 @@ class Dataset:

def __init__(self, fnames):
self.fnames = fnames
self.data = io.imread_collection(fnames)
random.shuffle(self.fnames)
self.data = io.imread_collection(self.fnames)

def __getitem__(self, index):
if index >= len(self):
Expand Down

0 comments on commit d915c2c

Please sign in to comment.