{"id":14041962,"url":"https://github.com/DreamyRainforest/Class_Activation_Mapping_Ensemble_Attack","last_synced_at":"2025-07-27T15:31:04.313Z","repository":{"id":187425041,"uuid":"676881847","full_name":"DreamyRainforest/Class_Activation_Mapping_Ensemble_Attack","owner":"DreamyRainforest","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-10T11:43:32.000Z","size":547,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-11T08:52:08.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DreamyRainforest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-10T08:22:17.000Z","updated_at":"2024-09-11T02:14:42.000Z","dependencies_parsed_at":"2023-08-10T15:52:47.800Z","dependency_job_id":null,"html_url":"https://github.com/DreamyRainforest/Class_Activation_Mapping_Ensemble_Attack","commit_stats":null,"previous_names":["yaya20160101/class_activation_mapping_ensemble_attack","dreamyrainforest/class_activation_mapping_ensemble_attack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamyRainforest%2FClass_Activation_Mapping_Ensemble_Attack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamyRainforest%2FClass_Activation_Mapping_Ensemble_Attack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamyRainforest%2FClass_Activation_Mapping_Ensemble_Attack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamyRainforest%2FClass_Activation_Mapping_Ensemble_Attack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DreamyRainforest","download_url":"https://codeload.github.com/DreamyRainforest/Class_Activation_Mapping_Ensemble_Attack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227814276,"owners_count":17823876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-12T08:00:41.675Z","updated_at":"2025-07-27T15:31:04.301Z","avatar_url":"https://github.com/DreamyRainforest.png","language":"Python","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# Class_Activation_Mapping_Ensemble_Attack\n\n# Requirements:\nPython 3.7.16     \ntorch 1.8.0+cu111  \ntorchvision 0.9.0+cu111    \ntqdm 4.65.0    \nnumpy 1.21.6     \npillow 9.5.0     \n# Experiments:\nThe code consists of three Python scripts. Before running the code, you need to complete the following two steps:     \n\nDownload Data: Download the data from the provided link (https://pan.baidu.com/s/1NlenXev0cN1l55ZSVQ-_nw; password: d6tn) and place it in the benign_image/ directory.    \n\nCalculate Class Activation Maps (CAM): Compute the class activation maps and place them in the CAM/ directory.    \n\n# Running the code\n\nuntaregt_attack_example.py：Non-targeted attack     \ntaregt_attack_example.py：targeted attack     \nvictim_one.py: test    \n\n# Acknowledgments:  \nCode refer to     \nhttps://github.com/Harry24k/adversarial-attacks-pytorch    \nhttps://github.com/frgfm/torch-cam    \nhttps://github.com/erbloo/dr_cvpr20    \nhttps://github.com/RobustBench/robustbench\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDreamyRainforest%2FClass_Activation_Mapping_Ensemble_Attack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDreamyRainforest%2FClass_Activation_Mapping_Ensemble_Attack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDreamyRainforest%2FClass_Activation_Mapping_Ensemble_Attack/lists"}