An implementation of the paper "TopNet: Transformer-based Object Placement Network for Image Compositing", CVPR 2023.
Download and extract data from Baidu Cloud(access code: 4zf9) or Google Drive. Put them in "data/data". It should contain the following directories and files:
<data/data>
bg/ # background images
fg/ # foreground images
mask/ # foreground masks
train(test)_pair_new.json # json annotations
train(test)_pair_new.csv # csv files