Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

找不到mixup_batch函数 #225

Open
Chy-ang opened this issue Sep 1, 2023 · 5 comments
Open

找不到mixup_batch函数 #225

Chy-ang opened this issue Sep 1, 2023 · 5 comments

Comments

@Chy-ang
Copy link

Chy-ang commented Sep 1, 2023

ghostnetv2_pytorch/train.py中的from timm.data import Dataset, create_loader, resolve_data_config, FastCollateMixup, mixup_batch, AugMixDataset这里的mixup_batch找不到这个函数,请问是什么问题

@thkey
Copy link

thkey commented May 18, 2024

同求,我也找不到

@xie103
Copy link

xie103 commented Sep 26, 2024

解决了吗,我也有这个问题

@iamhankai
Copy link
Member

可以用这个:https://github.com/alvinwan/nbdt-pytorch-image-models/blob/fffcb25630458c0c82cba546b5d174f2c98ad25c/timm/data/mixup.py#L18

@xie103
Copy link

xie103 commented Sep 26, 2024

可以用这个:https://github.com/alvinwan/nbdt-pytorch-image-models/blob/fffcb25630458c0c82cba546b5d174f2c98ad25c/timm/data/mixup.py#L18

是替换mixup.py这一个文件吗?还是怎样

@Neo-code003
Copy link

可以用这个:https://github.com/alvinwan/nbdt-pytorch-image-models/blob/fffcb25630458c0c82cba546b5d174f2c98ad25c/timm/data/mixup.py#L18

是替换mixup.py这一个文件吗?还是怎样

把里面的def mixup_batch 和FastCollateMixup里的 init 直接复制过去 再把FastCollateMixup里的__call__替换掉

然后再把data/init.py里的Mixup改为mixup_batch就行了

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

No branches or pull requests

5 participants