{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/towards-discovery-and-attribution-of-open","title":"Towards Discovery and Attribution of Open-world GAN Generated Images","arxiv_id":"2105.04580","date":"2021-05-10","proceeding":"ICCV 2021 10","authors":["Sharath Girish","Saksham Suri","Saketh Rambhatla","Abhinav Shrivastava"],"abstract":"With the recent progress in Generative Adversarial Networks (GANs), it is imperative for media and visual forensics to develop detectors which can identify and attribute images to the model generating them. Existing works have shown to attribute images to their corresponding GAN sources with high accuracy. However, these works are limited to a closed set scenario, failing to generalize to GANs unseen during train time and are therefore, not scalable with a steady influx of new GANs. We present an iterative algorithm for discovering images generated from previously unseen GANs by exploiting the fact that all GANs leave distinct fingerprints on their generated images. Our algorithm consists of multiple components including network training, out-of-distribution detection, clustering, merge and refine steps. Through extensive experiments, we show that our algorithm discovers unseen GANs with high accuracy and also generalizes to GANs trained on unseen real datasets. We additionally apply our algorithm to attribution and discovery of GANs in an online fashion as well as to the more standard task of real/fake detection. Our experiments demonstrate the effectiveness of our approach to discover new GANs and can be used in an open-world setup.","url_abs":"https://arxiv.org/abs/2105.04580v2","url_pdf":"https://arxiv.org/pdf/2105.04580v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"towards-discovery-and-attribution-of-open","repo_url":"https://github.com/Sharath-girish/openworld-gan","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"attribute","task_name":"Attribute"},{"task_slug":"clustering","task_name":"Clustering"},{"task_slug":"out-of-distribution-detection","task_name":"Out-of-Distribution Detection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2105.04580","atlas_url":"https://app.syntology.ai/?focus=2105.04580","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2105.04580"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Sharath-girish/openworld-gan","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_honours":1,"unverified":15},"by_repo_kind":{"official":{"samples":16,"ran":1,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"f321f54723433661","entry":"pil_loader","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"datasets.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/datasets.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f321f54723433661"}},{"code_sha256_prefix":"564f45fee3b447f8","entry":"blur_jpeg_transform","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"transforms.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/transforms.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"564f45fee3b447f8"}},{"code_sha256_prefix":"edd4d9dc63592d37","entry":"data_augment","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"transforms.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/transforms.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"edd4d9dc63592d37"}},{"code_sha256_prefix":"4fb209b49087100a","entry":"deep_update","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"config.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/config.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4fb209b49087100a"}},{"code_sha256_prefix":"c22099ee6d7856ba","entry":"default_loader","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"datasets.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/datasets.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c22099ee6d7856ba"}},{"code_sha256_prefix":"1ea9bdb8a1949c6a","entry":"default_transform","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"transforms.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/transforms.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1ea9bdb8a1949c6a"}},{"code_sha256_prefix":"a631d17bc1b9daee","entry":"get_hash","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"ood_detection.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/ood_detection.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a631d17bc1b9daee"}},{"code_sha256_prefix":"c5da6ea2b1410b04","entry":"get_hashperm","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"ood_detection.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/ood_detection.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c5da6ea2b1410b04"}},{"code_sha256_prefix":"69b2b3610e7431ba","entry":"get_means","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"merge.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/merge.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"69b2b3610e7431ba"}},{"code_sha256_prefix":"11582436ae076f3a","entry":"get_network","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"networks.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/networks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"11582436ae076f3a"}},{"code_sha256_prefix":"de40e954cfc6291e","entry":"get_pairwise_distances","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"clustering.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/clustering.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"de40e954cfc6291e"}},{"code_sha256_prefix":"70ee124084db90b2","entry":"has_file_allowed_extension","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"datasets.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/datasets.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"70ee124084db90b2"}},{"code_sha256_prefix":"f8a13f0f143a2d1d","entry":"kmeans_gpu","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"clustering.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/clustering.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f8a13f0f143a2d1d"}},{"code_sha256_prefix":"842a033bdf67b205","entry":"kmeans_init","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"clustering.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/clustering.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"842a033bdf67b205"}},{"code_sha256_prefix":"70fdb12e24d64495","entry":"knn_gpu","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"merge.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/merge.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"70fdb12e24d64495"}},{"code_sha256_prefix":"f07bc59b09e88c87","entry":"quantiles","repo":"Sharath-girish/openworld-gan","repo_kind":"official","path":"ood_detection.py","file_url":"https://github.com/Sharath-girish/openworld-gan/blob/HEAD/ood_detection.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f07bc59b09e88c87"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}