Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeyiasemis committed Jan 25, 2024
1 parent 2f1ffd9 commit aae6dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion direct/common/subsample.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def choose_acceleration(self):
center_fraction = self.rng.uniform(
low=min(self.center_fractions), high=max(self.center_fractions), size=1
)[0]
center_fraction = min(acceleration / 100, center_fraction)
center_fraction = max(1 / acceleration, center_fraction)
else:
choice = self.rng.randint(0, len(self.accelerations))
acceleration = self.accelerations[choice]
Expand Down

0 comments on commit aae6dec

Please sign in to comment.