Skip to content

Commit

Permalink
feat(torch): set data augmentation factors as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
royale authored and beniz committed Dec 29, 2022
1 parent 6638930 commit e26a775
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/backends/torch/torchlib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,12 @@ namespace dd
if (ad_geometry.has("zoom_in"))
geometry_params._geometry_zoom_in
= ad_geometry.get("zoom_in").get<bool>();
if (ad_geometry.has("persp_factor"))
geometry_params._geometry_persp_factor
= ad_geometry.get("persp_factor").get<double>();
if (ad_geometry.has("zoom_factor"))
geometry_params._geometry_zoom_factor
= ad_geometry.get("zoom_factor").get<double>();
if (ad_geometry.has("pad_mode"))
geometry_params.set_pad_mode(
ad_geometry.get("pad_mode").get<std::string>());
Expand Down

0 comments on commit e26a775

Please sign in to comment.