ain-soph / trojanzoo

TrojanZoo provides a universal pytorch platform to conduct security researches (especially backdoor attacks/defenses) of image classification in deep learning.
https://ain-soph.github.io/trojanzoo
GNU General Public License v3.0
279 stars 63 forks source link

In new push model path is not working #165

Closed ArshadIram closed 2 years ago

ArshadIram commented 2 years ago

FileNotFoundError: [Errno 2] No such file or directory: 'data\model\image\cifar10\resnet18_comp.pth'

ain-soph commented 2 years ago

Please provide enough information for the error. What kind of task are you running? Are you using example scripts?

I assume you are running BadNet attack and trying to load a clean model that is previously pretrained by adding cmd parameter --pretrained. Then you shall run ./examples/train.py first to train a model to save it there.

For the model path, you are using the default path in the package. You can always set your workspace config to change the model path or dataset path. For more details, please refer to the docs: https://ain-soph.github.io/trojanzoo/trojanvision/configs.html