fix: reset sampler iter at epoch end so progress bar shows total after first epoch
This commit is contained in:
parent
27d1921d9c
commit
27524ad085
|
|
@ -74,6 +74,7 @@ class ResumableDistributedSampler(Sampler[int]):
|
|||
|
||||
self.epoch += 1
|
||||
self._indices = None
|
||||
self.iter = self.iter % self.num_samples_per_replica
|
||||
|
||||
@property
|
||||
def _remaining(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue