You need to sign in or sign up before continuing.
Unverified Commit b5f1f89a authored by shaohua.zhang's avatar shaohua.zhang Committed by GitHub
Browse files

put the shuffer into iter

parent dd32d0f6
......@@ -41,8 +41,8 @@ class TrainReader(object):
label_infor_list = fin.readlines()
img_num = len(label_infor_list)
img_id_list = list(range(img_num))
random.shuffle(img_id_list)
if sys.platform == "win32":
random.shuffle(img_id_list)
print("multiprocess is not fully compatible with Windows."
"num_workers will be 1.")
self.num_workers = 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment