-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't cache input shapes because they can vary
Input shape transforms were previously only calculated once (i.e. for one frame / one image) and then cached for all subsequent calls. This is fine in 99% of use cases but if you want to process differently shaped inputs in the same deface process (given multiple input paths), this leads to crashes or even silently incorrect outputs. Transforms now have to be recalculated for each frame but this is very cheap, so it's okay to do this for the sake of better stability. Fixes #41
- Loading branch information
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters