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
274 stars 62 forks source link

In new push model path is not working #165

Closed ArshadIram closed 1 year ago

ArshadIram commented 1 year ago

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

ain-soph commented 1 year 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