Skip to content

Commit

Permalink
instantiate image before augmenting
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanuys committed Oct 30, 2024
1 parent 7c108bc commit 5ee24ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bitmind/validator/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ async def forward(self):
bt.logging.error(f'unsupported neuron.prompt_type: {self.config.neuron.prompt_type}')
raise NotImplementedError

image = sample['image']
if np.random.rand() > 0.25:
image = random_aug_transforms(sample['image'])
image = random_aug_transforms(image)
data_aug_params = random_aug_transforms.params
else:
data_aug_params = {}
Expand Down

0 comments on commit 5ee24ed

Please sign in to comment.