fix dataset deepcopy failed while depipline referenced in the iterator

This commit is contained in:
caojian05 2020-04-18 18:16:29 +08:00
parent 24fff5fe63
commit 852039b726
1 changed files with 3 additions and 0 deletions

View File

@ -231,6 +231,9 @@ class Iterator:
def num_classes(self):
return self.depipeline.GetNumClasses()
def __deepcopy__(self, memo):
return Iterator(copy.deepcopy(self.dataset, memo))
class DictIterator(Iterator):
"""