Skip to content

Commit aec2183

Browse files
authored
Merge pull request #53 from mfalt/mfalt-projection-bounds
Fix #52, `CenterCrop` and `RandomCrop` now work on their own as exptected.
2 parents 84838f2 + e1437e6 commit aec2183

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [Unreleased]
1010

11+
## [0.2.6]
12+
13+
### Fixed
14+
15+
- `CenterCrop` and co. now work properly on their own. (fixes [#52](https://github.com/lorenzoh/DataAugmentation.jl/issues/52))
16+
1117
## [0.2.5]
1218

1319
### Added

src/projective/base.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function apply(tfm::ProjectiveTransform, item::Item; randstate = getrandstate(tf
102102
bounds = getbounds(item)
103103
P = getprojection(tfm, bounds; randstate = randstate)
104104
bounds_ = projectionbounds(tfm, P, bounds; randstate = randstate)
105-
return P isa IdentityTransformation ? item : project(P, item, bounds_)
105+
return project(P, item, bounds_)
106106
end
107107

108108
# For the buffered version, `project!` is used. Of course the size

0 commit comments

Comments
 (0)