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

Two-stage training strategy #11

Closed
PWRuiLin opened this issue Jan 10, 2024 · 8 comments
Closed

Two-stage training strategy #11

PWRuiLin opened this issue Jan 10, 2024 · 8 comments

Comments

@PWRuiLin
Copy link

Can this use a two-stage training strategy?

@jzyustc
Copy link
Owner

jzyustc commented Jan 12, 2024

Hi, this repo does not support two-stage training. However, I think it may be simple for you to add some codes to achieve two-stage training.

@PWRuiLin
Copy link
Author

PWRuiLin commented Jan 25, 2024 via email

@jzyustc
Copy link
Owner

jzyustc commented Mar 5, 2024

Sure, we use the default settings in ./train_settings.json to train a model for JPEG attack.

@PWRuiLin
Copy link
Author

Thank you, and I would also like to ask how to compare the robustness of single noise models with other methods. When training a certain single noise, do we also need to add real Jpeg and simulated JPEG.
Such as gaussian noise:
"noise_layers": [
"Combined([JpegMask(50),Jpeg(50),Identity(), GN((0.01)])"
]

@jzyustc
Copy link
Owner

jzyustc commented Apr 15, 2024

When training for single noise, we did not add other noises. We only use simulated JPEG, real JPEG and Identity

@PWRuiLin
Copy link
Author

图片

May I ask, which types of noise and corresponding noise parameters were used in the training of the combined noise model in this experiment, as shown in the table?
Are these the ones in the following picture?
图片

@jzyustc
Copy link
Owner

jzyustc commented Jun 25, 2024

@PWRuiLin

For MBRS (w/o diffusion block), we use the same combined noises as in your picture.

For MBRS (w/ diffusion block), we find that using [Real JPEG, Simualted JPEG, Identity and Crop] brings better results. You can refer to Section 4.3.5 in the paper or #2 (comment) for more details.

@jzyustc
Copy link
Owner

jzyustc commented Aug 27, 2024

Closing due to inactivity. Feel free to reopen if needed. Thanks.

@jzyustc jzyustc closed this as completed Aug 27, 2024
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

2 participants