This repository contains the source code for the experimental adaptation of a semi-supervised instance segmentation model, which seeks to improve its performance by adapting to out-of-distribution scenes. The model leverages slot-centric generative models in the process of adaptation. We provide detailed instructions on how to install and use the model, as well as code for conducting 2D RGB experiments.
We use Pytorch 2.0 for all our experiments. We use wandb for logging the results. Install conda (instructions here). Create a conda environment using the below commands:
conda create -n slot_tta python=3.8.5
conda activate slot_tta
Install the required pip packages using the below command:
pip install -r requirement.txt
python main.py +experiment=clevr_train
In order to load with your own checkpoint, simply update the load_folder
variable as shown below.
For intermediate TTA result visualization, set deep_tta_vis
variable to True
python main.py +experiment=clevrtex_tta load_folder=checkpoint/clevr_train/checkpoint.pt
If you find this work useful in your research, please cite:
@inproceedings{prabhudesai2022test,
title={Test-time Adaptation with Slot-Centric Models},
author={Prabhudesai, Mihir and Goyal, Anirudh and Paul, Sujoy and van Steenkiste, Sjoerd and Sajjadi, Mehdi SM and Aggarwal, Gaurav and Kipf, Thomas and Pathak, Deepak and Fragkiadaki, Katerina},
journal={arXiv preprint arXiv:2203.11194},
year={2022}
}