Replies: 4 comments 3 replies
-
Sorry I used the wrong word "Mitigate", it should be "Migrate" |
Beta Was this translation helpful? Give feedback.
-
Another problem: image normalization is conducted in Augmix, soit has conflict with "data_preprocessor", but I guess I can simply not use the data_preprocessor, and use "normalize" in data pipeline if needed. |
Beta Was this translation helpful? Give feedback.
-
I'm very sorry for the inconvenience caused by this upgrade. Compse is in mmcv. Specifically, you can access https://github.com/open-mmlab/mmcv/blob/89a264527e3dc9c5eebed6195faa709d446c7a9c/mmcv/transforms/wrappers.py#L40 to disuse normalize in data_preprocessor:
I notice that Augmix has been supported in torchvision refer to: https://pytorch.org/vision/stable/generated/torchvision.transforms.AugMix.html#torchvision.transforms.AugMix Maybe you can use that, refer to PR #1265 |
Beta Was this translation helpful? Give feedback.
-
I solved the problem by modifying the following files in mmpretrain, to replace the equivalent parts in "Compose" in mmclassification: Thanks for your help ! |
Beta Was this translation helpful? Give feedback.
-
Hello, I encountered an issue while trying to migrate the "Augmix" class from the Misclassification to the MMpretrain. "Augmix" is an augmentation method that I wrote myself and placed in the PIPELINE module.
The implementation is straightforward, but when loading 1 image, 3 augmented images will be the output. it returns a list instead of a dictionary, which causes issues in the data-loading pipeline.
To resolve this issue, I modified the "Compose" class in the data-loading pipeline to accept a list as input.
However, when attempting to migrate the code from Misclassification to MMpretrain, I encountered several problems.
The most significant issue is that I could not find an equivalent function to "Compose" in mmpretrain. As a result, I am unable to resolve the problem of "Augmix" returning a list instead of a dictionary, causing 'PackInputs' to fail to work.
So I am here to ask for some help, is there an equivalent function to "Compose" in mmpretrain. Or is there any clever idea to implement "Augmix" in MMpretrain.
Thanks a lot for the help!
Beta Was this translation helpful? Give feedback.
All reactions