-
Notifications
You must be signed in to change notification settings - Fork 62
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
problem about saving the intermediate results and config problem #185
Comments
trojanzoo/trojanvision/attacks/abstract.py Lines 110 to 112 in 1f417cc
trojanzoo/trojanvision/attacks/abstract.py Lines 185 to 192 in 1f417cc
The trojanzoo/trojanzoo/utils/train.py Lines 201 to 203 in 1f417cc
This structure is to save model during training intervals. If you simply want to save model in your main script after training, you can always use |
To control the interval to save models, use validate_interval parameter (command-line argument as well) trojanzoo/trojanzoo/utils/train.py Line 180 in 1f417cc
trojanzoo/trojanzoo/trainer.py Line 123 in 1f417cc
|
what if i want to save multiple models? not just updating one model. |
@andyclsr You have 2 options:
trojanzoo/trojanvision/attacks/abstract.py Lines 110 to 112 in 1f417cc
|
ok I know it. really thank you for your generous explanations! wish you a good day! |
hi, your work is excellent but i encounter some problems.
first , i read similar problems #153 and
your https://ain-soph.github.io/trojanzoo/trojanvision/configs.html ,but constructions about configs are hard to understand and the example you provide is limited like this : https://github.com/ain-soph/trojanzoo/blob/main/trojanzoo/configs/dataset.yml.
my problem is i don't know how to store intermediate results and i think it is my config problem
![image](https://user-images.githubusercontent.com/69943589/229275498-2e88cc5a-59e4-424b-869a-b934fe2fe2fa.png)
![image](https://user-images.githubusercontent.com/69943589/229275602-3bc17bb8-9198-4fca-91b2-b7ea46ac5b55.png)
i do something like this : and for example attack.yml is only " attack_dir: /data/attack/"
and my file structure:
my main.py :
i still wonder about the use of config file and it seem like nothing was stored.
i hope you could give a concrete example about the use of it. thx anyway
The text was updated successfully, but these errors were encountered: