huawei-noah / Efficient-AI-Backbones

Efficient AI Backbones including GhostNet, TNT and MLP, developed by Huawei Noah's Ark Lab.
4.02k stars 706 forks source link

Dataset() takes no arguments #143

Open 2450961986 opened 2 years ago

2450961986 commented 2 years ago

Hello, when running the program, "Dataset() takes no arguments" error appears, how to solve it.

2450961986 commented 2 years ago

After ignoring the "dataset_train = Dataset(train_dir)", "'str' object has no attribute 'transform'" will appear.

iamhankai commented 2 years ago

Two choices: