Skip to content

Commit

Permalink
feat(torch): allow data aug to be only noise or distort
Browse files Browse the repository at this point in the history
  • Loading branch information
fantes authored and mergify[bot] committed Jan 13, 2023
1 parent 5bba045 commit 5a02234
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backends/torch/torchlib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,8 @@ namespace dd
bool has_data_augmentation
= ad_mllib.has("mirror") || ad_mllib.has("rotate")
|| ad_mllib.has("crop_size") || ad_mllib.has("cutout")
|| ad_mllib.has("geometry");
|| ad_mllib.has("geometry") || ad_mllib.has("noise")
|| ad_mllib.has("distort");
if (has_data_augmentation)
{
bool has_mirror
Expand Down

0 comments on commit 5a02234

Please sign in to comment.