fix(dali): add shuffle to prob_list in ExternalSource_RandomIdentity
parent
b22752e2ea
commit
4060957669
|
@ -529,6 +529,7 @@ class ExternalSource_RandomIdentity(object):
|
|||
if self.shuffle:
|
||||
seed = self.shard_id * 12345 + self.epoch
|
||||
np.random.RandomState(seed).shuffle(self.label_list)
|
||||
np.random.RandomState(seed).shuffle(self.prob_list)
|
||||
self.epoch += 1
|
||||
return self
|
||||
|
||||
|
|
Loading…
Reference in New Issue