Skip to content

Conversation

Aurelien-VB
Copy link
Contributor

In the current code, when augmentations fail with attribute error, the error is silent and the code continues on.
In the best case it might not cause further problems but data will not be augmented.
In worst cases like for padding, the error may cause an other error down the line like in batch_list.

I propose to add warnings when such errors occurs so that developers can easily identify the cause of the problem.

@Aurelien-VB Aurelien-VB self-assigned this Apr 6, 2023
@Aurelien-VB Aurelien-VB requested a review from Data-Iab April 6, 2023 09:38
@thibo73800 thibo73800 merged commit e78bdac into master Apr 6, 2023
@thibo73800 thibo73800 deleted the augmentations_warning branch April 6, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants