Skip to content

Commit

Permalink
failed attempt correction
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesTHOMAS committed Apr 6, 2022
1 parent 5b5641e commit 7255680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datasets/S3DIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def potential_item(self, batch_i, debug_workers=False):
# Safe check for empty spheres
if n < 2:
failed_attempts += 1
if failed_attempts > 2 * self.config.batch_num:
if failed_attempts > 100 * self.config.batch_num:
raise ValueError('It seems this dataset only containes empty input spheres')
t += [time.time()]
t += [time.time()]
Expand Down Expand Up @@ -550,7 +550,7 @@ def random_item(self, batch_i):
# Safe check for empty spheres
if n < 2:
failed_attempts += 1
if failed_attempts > 2 * self.config.batch_num:
if failed_attempts > 100 * self.config.batch_num:
raise ValueError('It seems this dataset only containes empty input spheres')
continue

Expand Down

0 comments on commit 7255680

Please sign in to comment.