├── .gitignore ├── .vscode ├── launch.json └── settings.json ├── LICENSE ├── QimingZHANG-NIPS_UDA.pdf ├── README.md ├── augmentations ├── __init__.py └── augmentations.py ├── cac.py ├── category_anchors ├── configs ├── CAC_from_gta_to_city.yml ├── adaptation_from_gta_to_city.yml ├── readme └── test_from_gta_to_city.yml ├── data ├── DataProvider.py ├── __init__.py ├── base_dataset.py ├── cityscapes_dataset.py ├── gta5_dataset.py ├── template_dataset.py └── utils.py ├── loss ├── __init__.py └── loss.py ├── metrics.py ├── models ├── __init__.py ├── adaptation_model.py ├── aspp.py ├── backbone │ ├── __init__.py │ ├── drn.py │ ├── mobilenet.py │ ├── resnet.py │ └── xception.py ├── base_model.py ├── cycle_gan_model.py ├── decoder.py ├── deeplab.py ├── discriminator.py ├── networks.py ├── psp_base.py ├── psp_segmentation.py ├── sync_batchnorm │ ├── __init__.py │ ├── batchnorm.py │ ├── comm.py │ ├── replicate.py │ └── unittest.py ├── template_model.py └── utils.py ├── optimizers └── __init__.py ├── requirements.txt ├── schedulers ├── __init__.py └── schedulers.py ├── test.py ├── train.py ├── utils ├── Synchronized-BatchNorm-PyTorch │ ├── LICENSE │ ├── README.md │ ├── __init__.py │ ├── sync_batchnorm │ │ ├── __init__.py │ │ ├── batchnorm.py │ │ ├── batchnorm_reimpl.py │ │ ├── comm.py │ │ ├── replicate.py │ │ └── unittest.py │ └── tests │ │ ├── test_numeric_batchnorm.py │ │ ├── test_numeric_batchnorm_v2.py │ │ └── test_sync_batchnorm.py ├── __init__.py ├── bn.py ├── functions.py ├── src │ ├── checks.h │ ├── inplace_abn.cpp │ ├── inplace_abn.h │ ├── inplace_abn_cpu.cpp │ ├── inplace_abn_cuda.cu │ ├── inplace_abn_cuda_half.cu │ └── utils │ │ ├── checks.h │ │ ├── common.h │ │ └── cuda.cuh ├── sync_batchnorm │ ├── __init__.py │ ├── batchnorm.py │ ├── batchnorm_reimpl.py │ ├── comm.py │ ├── replicate.py │ └── unittest.py └── utils.py ├── validate.py └── vscode.code-workspace /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/LICENSE -------------------------------------------------------------------------------- /QimingZHANG-NIPS_UDA.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/QimingZHANG-NIPS_UDA.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/README.md -------------------------------------------------------------------------------- /augmentations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/augmentations/__init__.py -------------------------------------------------------------------------------- /augmentations/augmentations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/augmentations/augmentations.py -------------------------------------------------------------------------------- /cac.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/cac.py -------------------------------------------------------------------------------- /category_anchors: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/category_anchors -------------------------------------------------------------------------------- /configs/CAC_from_gta_to_city.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/configs/CAC_from_gta_to_city.yml -------------------------------------------------------------------------------- /configs/adaptation_from_gta_to_city.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/configs/adaptation_from_gta_to_city.yml -------------------------------------------------------------------------------- /configs/readme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/configs/readme -------------------------------------------------------------------------------- /configs/test_from_gta_to_city.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/configs/test_from_gta_to_city.yml -------------------------------------------------------------------------------- /data/DataProvider.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/data/DataProvider.py -------------------------------------------------------------------------------- /data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/data/__init__.py -------------------------------------------------------------------------------- /data/base_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/data/base_dataset.py -------------------------------------------------------------------------------- /data/cityscapes_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/data/cityscapes_dataset.py -------------------------------------------------------------------------------- /data/gta5_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/data/gta5_dataset.py -------------------------------------------------------------------------------- /data/template_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/data/template_dataset.py -------------------------------------------------------------------------------- /data/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/data/utils.py -------------------------------------------------------------------------------- /loss/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/loss/__init__.py -------------------------------------------------------------------------------- /loss/loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/loss/loss.py -------------------------------------------------------------------------------- /metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/metrics.py -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/__init__.py -------------------------------------------------------------------------------- /models/adaptation_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/adaptation_model.py -------------------------------------------------------------------------------- /models/aspp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/aspp.py -------------------------------------------------------------------------------- /models/backbone/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/backbone/__init__.py -------------------------------------------------------------------------------- /models/backbone/drn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/backbone/drn.py -------------------------------------------------------------------------------- /models/backbone/mobilenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/backbone/mobilenet.py -------------------------------------------------------------------------------- /models/backbone/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/backbone/resnet.py -------------------------------------------------------------------------------- /models/backbone/xception.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/backbone/xception.py -------------------------------------------------------------------------------- /models/base_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/base_model.py -------------------------------------------------------------------------------- /models/cycle_gan_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/cycle_gan_model.py -------------------------------------------------------------------------------- /models/decoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/decoder.py -------------------------------------------------------------------------------- /models/deeplab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/deeplab.py -------------------------------------------------------------------------------- /models/discriminator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/discriminator.py -------------------------------------------------------------------------------- /models/networks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/networks.py -------------------------------------------------------------------------------- /models/psp_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/psp_base.py -------------------------------------------------------------------------------- /models/psp_segmentation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/psp_segmentation.py -------------------------------------------------------------------------------- /models/sync_batchnorm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/sync_batchnorm/__init__.py -------------------------------------------------------------------------------- /models/sync_batchnorm/batchnorm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/sync_batchnorm/batchnorm.py -------------------------------------------------------------------------------- /models/sync_batchnorm/comm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/sync_batchnorm/comm.py -------------------------------------------------------------------------------- /models/sync_batchnorm/replicate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/sync_batchnorm/replicate.py -------------------------------------------------------------------------------- /models/sync_batchnorm/unittest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/sync_batchnorm/unittest.py -------------------------------------------------------------------------------- /models/template_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/template_model.py -------------------------------------------------------------------------------- /models/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/models/utils.py -------------------------------------------------------------------------------- /optimizers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/optimizers/__init__.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/requirements.txt -------------------------------------------------------------------------------- /schedulers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/schedulers/__init__.py -------------------------------------------------------------------------------- /schedulers/schedulers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/schedulers/schedulers.py -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/test.py -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/train.py -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/Synchronized-BatchNorm-PyTorch/LICENSE -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/Synchronized-BatchNorm-PyTorch/README.md -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/__init__.py -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/batchnorm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/batchnorm.py -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/batchnorm_reimpl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/batchnorm_reimpl.py -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/comm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/comm.py -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/replicate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/replicate.py -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/unittest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/Synchronized-BatchNorm-PyTorch/sync_batchnorm/unittest.py -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/tests/test_numeric_batchnorm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/Synchronized-BatchNorm-PyTorch/tests/test_numeric_batchnorm.py -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/tests/test_numeric_batchnorm_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/Synchronized-BatchNorm-PyTorch/tests/test_numeric_batchnorm_v2.py -------------------------------------------------------------------------------- /utils/Synchronized-BatchNorm-PyTorch/tests/test_sync_batchnorm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/Synchronized-BatchNorm-PyTorch/tests/test_sync_batchnorm.py -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/bn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/bn.py -------------------------------------------------------------------------------- /utils/functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/functions.py -------------------------------------------------------------------------------- /utils/src/checks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/src/checks.h -------------------------------------------------------------------------------- /utils/src/inplace_abn.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/src/inplace_abn.cpp -------------------------------------------------------------------------------- /utils/src/inplace_abn.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/src/inplace_abn.h -------------------------------------------------------------------------------- /utils/src/inplace_abn_cpu.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/src/inplace_abn_cpu.cpp -------------------------------------------------------------------------------- /utils/src/inplace_abn_cuda.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/src/inplace_abn_cuda.cu -------------------------------------------------------------------------------- /utils/src/inplace_abn_cuda_half.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/src/inplace_abn_cuda_half.cu -------------------------------------------------------------------------------- /utils/src/utils/checks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/src/utils/checks.h -------------------------------------------------------------------------------- /utils/src/utils/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/src/utils/common.h -------------------------------------------------------------------------------- /utils/src/utils/cuda.cuh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/src/utils/cuda.cuh -------------------------------------------------------------------------------- /utils/sync_batchnorm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/sync_batchnorm/__init__.py -------------------------------------------------------------------------------- /utils/sync_batchnorm/batchnorm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/sync_batchnorm/batchnorm.py -------------------------------------------------------------------------------- /utils/sync_batchnorm/batchnorm_reimpl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/sync_batchnorm/batchnorm_reimpl.py -------------------------------------------------------------------------------- /utils/sync_batchnorm/comm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/sync_batchnorm/comm.py -------------------------------------------------------------------------------- /utils/sync_batchnorm/replicate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/sync_batchnorm/replicate.py -------------------------------------------------------------------------------- /utils/sync_batchnorm/unittest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/sync_batchnorm/unittest.py -------------------------------------------------------------------------------- /utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/utils/utils.py -------------------------------------------------------------------------------- /validate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/validate.py -------------------------------------------------------------------------------- /vscode.code-workspace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RogerZhangzz/CAG_UDA/HEAD/vscode.code-workspace --------------------------------------------------------------------------------