mjkwon2021 / CAT-Net

Official code for CAT-Net: Compression Artifact Tracing Network. Image manipulation detection and localization.
210 stars 25 forks source link

How much alike must be auth and tamper files? #9

Open Vadim2S opened 2 years ago

Vadim2S commented 2 years ago

Is they must be same size, aspect ratio and compression? Is images may be slightly moved relative center of picture?

CauchyComplete commented 2 years ago

Are you talking about training? In training, auth and tamp are not used as pairs. They are used independently. You can use any auth and tamp images. You may even use only tamp images and no auth images.

Vadim2S commented 2 years ago

Big thanks. Another questions: 1) Is tampering and groundtruth files must be same shape? You check it and drop mismatched files in CASIA adapter only. Other datasets adapters do not check shape. 2) You provide auth files as single file and tampered files as tampered file and groundtruth file or None. How much importance of groundtruth file here? I am can remove tampered file without groundtruth pair if it worth to do so.

CauchyComplete commented 2 years ago
  1. If tamp and gt have different sizes, gt is resized to match the tamp size.
  2. I cannot understand your sentences.
Vadim2S commented 2 years ago

Sorry for my terrible english.

1) Where gt is resized? Must i am resize gt myself or you CAT-Net code do it? P.S. In dataset_CASIA.py you just discard misshaped tp+gt pair and do not use them at all. 2) This is stupid question about using tp without corresponding gt, sorry.