Object Remover Performance Evaluation Methods using Class-wise Object Removal Images

Changsuk Oh, Dongseok Shim, Taekbeom Lee, H. Jin Kim

Abstract

Object removal refers to the process of erasing designated objects from an image while preserving the overall appearance, and it is one area where image inpainting is widely used in real-world applications. The performance of an object remover is quantitatively evaluated by measuring the quality of object removal results, similar to how the performance of an image inpainter is gauged. Current works reporting quantitative performance evaluations utilize original images as references. In this letter, to validate the current evaluation methods cannot properly evaluate the performance of an object remover, we create a dataset with object removal ground truth and compare the evaluations made by the current methods using original images to those utilizing object removal ground truth images. The disparities between two evaluation sets validate that the current methods are not suitable for measuring the performance of an object remover. Additionally, we propose new evaluation methods tailored to gauge the performance of an object remover. The proposed methods evaluate the performance through class-wise object removal results and utilize images without the target class objects as a comparison set. We confirm that the proposed methods can make judgments consistent with human evaluators in the COCO dataset, and that they can produce measurements aligning with those using object removal ground truth in the self-acquired dataset.

Introduction

In the field of image inpainting, "object removal" is a primary use case. However, measuring how well a model performs is a significant challenge. Most researchers currently use Full-Reference (FR) metrics like PSNR (Peak Signal-to-Noise Ratio) or LPIPS (Learned Perceptual Image Patch Similarity). These compare the "cleaned" image to the "original" image. However, because the original image contains the object intended for removal, these metrics often reward models that fail to remove the object entirely, as the result remains mathematically closer to the original pixels.

Even unpaired metrics like the standard FID (Fréchet Inception Distance) struggle because their reference sets usually contain the very objects the model is trying to erase, leading to a distribution mismatch that confuses the evaluation.

Proposed Methodology: Class-wise Evaluation

To address these limitations, this research proposes a shift toward class-wise object removal evaluation. Instead of removing arbitrary shapes, the focus is on removing all instances of a specific category (e.g., "cars" or "people"). Two modified metrics are introduced:

  • FID*: A variation of FID that compares the distribution of images where a specific class was removed against a "comparison set" of real images that naturally lack those objects.
  • U-IDS*: A variation of the Unpaired Inception Distance Score using a linear Support Vector Machine (SVM) to distinguish between "successfully removed" images and "naturally empty" images.

By using a reference set that is naturally "clean" of the target class, the metrics can focus on whether the background reconstruction looks realistic and seamless.

Experimental Setup and Datasets

The researchers utilized three main data sources to validate their approach:

  1. CARLA Simulator Dataset: A custom dataset of 50,000 image pairs (with and without vehicles) was created to provide a rare "Object Removal Ground Truth."
  2. COCO Dataset: Real-world testing focused on the "person" class, using COCO images without people as the comparison set.
  3. Model Benchmarking: Five state-of-the-art inpainters—Lama, CR-Fill, MADF, MAT, and RePaint—were evaluated.

Key Insights: The Dilation Paradox

A critical finding is the "Dilation Paradox." To ensure an object is fully removed, practitioners often dilate the mask (make it slightly larger). Traditional metrics (PSNR/SSIM) consistently rank a "kernel size of 0" (no dilation) as the best because it leaves more original pixels intact. Humans, however, prefer dilated masks that ensure no "ghosting" edges of the object remain.

Visual comparison of object removal with varying mask dilation kernel sizes. As kernel size increases, the object is more thoroughly removed, but traditional metrics favor smaller kernels.

In a user study with 23 participants, humans preferred object removal results using a mask dilation (kernel size = 10). While traditional metrics incorrectly chose kernel size = 0, the proposed FID* and U-IDS* correctly identified the human-preferred models.

Results and Discussion

Validation via the CARLA simulator proved that FID* and U-IDS* rankings match the rankings obtained using perfect ground-truth images—something almost never available in the real world. Furthermore, the study determined that reliable evaluation (Relative Standard Deviation < 1%) requires roughly 7,000 to 9,000 images in the query and comparison sets.

Using these new metrics on the COCO dataset, the authors were able to provide a stable ranking of modern inpainting backbones specifically for the task of object removal, which was previously impossible to do quantitatively.

Conclusion

This work demonstrates that current evaluation methods for object removal are fundamentally flawed due to their reliance on reference images containing the target objects. By introducing class-wise evaluation and the FID* and U-IDS* metrics, the authors provide a robust framework that aligns quantitative scores with human perception. Future work may address instance-specific removal in crowded scenes and the application of these metrics for model selection during training.

Summary updated

BibTeX
@article{oh2024object,
  author = {Changsuk Oh and Dongseok Shim and Taekbeom Lee and H. Jin Kim},
  title = {{Object Remover Performance Evaluation Methods using Class-wise Object Removal Images}},
  journal = {IEEE Sensors Letters},
  year = {2024},
  doi = {10.1109/lsens.2024.3404139},
}
Figure