CAT-Net icon indicating copy to clipboard operation
CAT-Net copied to clipboard

How much alike must be auth and tamper files?

Open Vadim2S opened this issue 3 years ago • 4 comments

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

Vadim2S avatar Nov 12 '21 09:11 Vadim2S

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.

CauchyComplete avatar Nov 12 '21 17:11 CauchyComplete

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.

Vadim2S avatar Nov 17 '21 12:11 Vadim2S

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

CauchyComplete avatar Nov 19 '21 06:11 CauchyComplete

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.

Vadim2S avatar Nov 19 '21 11:11 Vadim2S