Skip to content

Files

Latest commit

7094c68 · Jun 12, 2023

History

History

MetaIC

TestIC

A toolkit for testing image captioning [ISSTA'22]

If you use any of our tools or datasets in your research for publication, please kindly cite the following paper:

  • Boxi Yu, Zhiqing Zhong, Xinran Qin, Jiayi Yao, Yuancheng Wang, and Pinjia He. 2022. Automated testing of image captioning systems. In Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA 2022). Association for Computing Machinery, New York, NY, USA, 467–479. https://doi.org/10.1145/3533767.3534389

Environment requirements:

Structure of the code

The project includes code for our object inserting method, an implementation of MetaIC, data of the object source images we collect from Flickr, the result of our manual review for erroneous issues, and a tool to report prospective errors in MS COCO Caption.

Related code and links we use in this project:

Object inserting method

The implementation of our object inserting method is in Insert_code, please refer to Insert_Code\README.md to get the information of how to use the code.

Object source images

We collect a pool of object source images on flickr, containing 60 categories (60 out of 80) of MS COCO Caption. Users can use Yolact++ to perform the segmentation on our collected dataset and obtain high-quality standalone object images. Users can also download their own dataset on Flickr.

Report erroneous issues

This directory corresponds to the implementation of MetaIC to report suspicious issues of the 1 paid IC API and 5 IC models. Each directory contains:

  • An implementation of MetaIC to check the MRs we propose in the paper.
  • The captions produced by the IC we tested on the background image of the test dataset of MS COCO Caption, and our synthetic images with various overlapping ratios.
  • The reported suspicious issues produced by MetaIC.
  • Example(report suspicious issues for Microsoft Azure Cognitive Servicses with r a t i o 0 ):
      # Start to report the suspicious issues of Microsoft Azure Cognitive Services:
      cd Report_erroneous_issues/azure_meta_relation_error_report_dir
      python meta_relation_error_report_0.py