SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.00680 · 2022

On the detection of synthetic images generated by diffusion models

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 20 functions out of this paper's own repositories and ran 18 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
grip-unina/dmimagedetection canonical 18 of 20
FunctionStatusWhere it lives
calculate_eer Ran grip-unina/dmimagedetection/test_code/dmetrics.py
code served (permissive licence) · get_code("0cf19471e87a45c2")
center_crop Ran grip-unina/dmimagedetection/test_code/normalization.py
code served (permissive licence) · get_code("6b872402efcb1483")
check_img Ran grip-unina/dmimagedetection/test_code/csv_operations.py
code served (permissive licence) · get_code("be47a06dbf02938c")
conv1x1 Ran grip-unina/dmimagedetection/test_code/networks/resnet.py
code served (permissive licence) · get_code("d9def42110729a85")
conv3x3 Ran grip-unina/dmimagedetection/test_code/networks/resnet.py
code served (permissive licence) · get_code("fac5364e2f53c6db")
conv3x3 Ran grip-unina/dmimagedetection/test_code/networks/resnet_mod.py
code served (permissive licence) · get_code("67c9ab8e625b4e5f")
get_bal_sampler Ran grip-unina/dmimagedetection/training_code/utils/dataset.py
code served (permissive licence) · get_code("b77e8d2f3ae99b82")
get_list_norm Ran grip-unina/dmimagedetection/test_code/normalization.py
code served (permissive licence) · get_code("436664f4ff92f847")
get_method_here Ran grip-unina/dmimagedetection/test_code/get_method_here.py
code served (permissive licence) · get_code("8e16d042fbf592d9")
macc Ran grip-unina/dmimagedetection/test_code/dmetrics.py
code served (permissive licence) · get_code("6a626b600adb420b")
normalization_fft Ran grip-unina/dmimagedetection/test_code/normalization.py
code served (permissive licence) · get_code("a639fc58d11576d3")
padding_wrap Ran grip-unina/dmimagedetection/test_code/normalization2.py
code served (permissive licence) · get_code("6ccd7d166120f68e")
pd_at_far Ran grip-unina/dmimagedetection/test_code/dmetrics.py
code served (permissive licence) · get_code("c1cd563a01ddb7e3")
resnet18 Ran grip-unina/dmimagedetection/test_code/networks/resnet.py
code served (permissive licence) · get_code("d586be93da3254ed")
resnet18 Ran grip-unina/dmimagedetection/test_code/networks/resnet_mod.py
code served (permissive licence) · get_code("1ab046e413eb720a")
resnet18 Ran grip-unina/dmimagedetection/training_code/networks/resnet_mod.py
code served (permissive licence) · get_code("ea87c5c696f3e8f4")
rule_minmax Ran grip-unina/dmimagedetection/test_code/get_method_here.py
code served (permissive licence) · get_code("1601acbe295e6729")
rule_trim Ran grip-unina/dmimagedetection/test_code/get_method_here.py
code served (permissive licence) · get_code("18315f3fd5065642")
add_dataloader_arguments Not yet run grip-unina/dmimagedetection/training_code/utils/dataset.py
code served (permissive licence) · get_code("0db59a5c1784496d")
get_dataset Not yet run grip-unina/dmimagedetection/training_code/utils/dataset.py
code served (permissive licence) · get_code("96beb5997283006e")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Over the past decade, there has been tremendous progress in creating synthetic media, mainly thanks to the development of powerful methods based on generative adversarial networks (GAN). Very recently, methods based on diffusion models (DM) have been gaining the spotlight. In addition to providing an impressive level of photorealism, they enable the creation of text-based visual content, opening up new and exciting opportunities in many different application fields, from arts to video games. On the other hand, this property is an additional asset in the hands of malicious users, who can generate and distribute fake media perfectly adapted to their attacks, posing new challenges to the media forensic community. With this work, we seek to understand how difficult it is to distinguish synthetic images generated by diffusion models from pristine ones and whether current state-of-the-art detectors are suitable for the task. To this end, first we expose the forensics traces left by diffusion models, then study how current detectors, developed for GAN-generated images, perform on these new synthetic images, especially in challenging social-networks scenarios involving image compression and resizing. Datasets and code are available at github.com/grip-unina/DMimageDetection.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2211.00680")
get_code_for_paper("2211.00680")
have("2211.00680")

Connect an agent — have() is free.