ares.defense package¶
- class ares.defense.bit_depth_reduction.BitDepthReduction(device='cuda', compressed_bit=4)[source]¶
Bases:
object
Bit depth reduction defense method.
- class ares.defense.jpeg_compression.Jpeg_compression(device='cuda', quality=75)[source]¶
Bases:
object
JPEG compression defense method.
- class ares.defense.randomization.Randomization(device='cuda', prob=0.8, crop_lst=[0.1, 0.08, 0.06, 0.04, 0.02])[source]¶
Bases:
object
Random input transform defense method.