You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Augmentations that rely on perlin noise generation are particularly slow, including Letterpress and others.
It would be great if the augmentations taking more time can be made more efficient/leverage GPU as it is too slow to practically use the bottom ones in the list for training.
I tried to train a model using letterpress and found that its one epoch was taking 12x more time than without applying the augmentation. I timed most augmentations on augmenting 7 images and here are the results:
jboarman
changed the title
Performance Improvement Needed on a Few Augmentations
Improve Performance on Letterpress and Other Augmentations Relying on Noise Generation
Apr 10, 2023
The key issue with these slower augmentations is the noise generation process. So, we will use this issue to focus on approaches to speed noise generation while retaining an essential level of random variation in the distortions.
These augmentations should all be improved once we can improve the noise generation process:
Letterpress
BleedThrough
BadPhotoCopy
LightingGradient
PageBorder
NoiseTexturize
DirtyDrum
InkBleed
Faxify
We've recently released a performance improvement via #270 which included use of Numba to optimize loops. However, we found there remain a lot of opportunity to improve the noise generation processes which most heavily impact augmentation performance.
See greater than 100% performance improvements from recent Augraphy updates: #270 (comment)
Augmentations that rely on perlin noise generation are particularly slow, including Letterpress and others.
It would be great if the augmentations taking more time can be made more efficient/leverage GPU as it is too slow to practically use the bottom ones in the list for training.
I tried to train a model using letterpress and found that its one epoch was taking 12x more time than without applying the augmentation. I timed most augmentations on augmenting 7 images and here are the results:
Here is the code for timing:
The text was updated successfully, but these errors were encountered: