LEGION
[ICCV25 Highlight] The official implementation of the paper "LEGION: Learning to Ground and Explain for Synthetic Image Detection"
File Explorer
Download Latest Version (.zip)- detection.png
- explanation.png
- localization.png
- robot.png
- dataset.png
- new_case_framework.png
- detection_table.png
- explanation_table.png
- hps_table.png
- localization_table.png
- COCO_Caption_ds.py
- GranD_ShortCaption_ds.py
- LLavaInstruct_vqa_ds.py
- GranDf_gcg_ds.py
- Flickr_Region_ds.py
- GranD_ReferringRegion_ds.py
- RefCOCO_VG_Region_ds.py
- GranD_ReferringSegm_ds.py
- RefCOCO_Segm_ds.py
- Semantic_Segm_ds.py
- utils.py
- dataset.py
- ddp.py
- utils.py
- __init__.py
- inference.py
- test.py
- train.py
- __init__.py
- anchor_generator.py
- builder.py
- point_generator.py
- utils.py
- __init__.cpython-310.pyc
- approx_max_iou_assigner.cpython-310.pyc
- assign_result.cpython-310.pyc
- atss_assigner.cpython-310.pyc
- base_assigner.cpython-310.pyc
- center_region_assigner.cpython-310.pyc
- grid_assigner.cpython-310.pyc
- hungarian_assigner.cpython-310.pyc
- mask_hungarian_assigner.cpython-310.pyc
- max_iou_assigner.cpython-310.pyc
- point_assigner.cpython-310.pyc
- region_assigner.cpython-310.pyc
- sim_ota_assigner.cpython-310.pyc
- task_aligned_assigner.cpython-310.pyc
- uniform_assigner.cpython-310.pyc
- __init__.py
- approx_max_iou_assigner.py
- assign_result.py
- atss_assigner.py
- base_assigner.py
- center_region_assigner.py
- grid_assigner.py
- hungarian_assigner.py
- mask_hungarian_assigner.py
- max_iou_assigner.py
- point_assigner.py
- region_assigner.py
- sim_ota_assigner.py
- task_aligned_assigner.py
- uniform_assigner.py
- __init__.cpython-310.pyc
- base_bbox_coder.cpython-310.pyc
- bucketing_bbox_coder.cpython-310.pyc
- delta_xywh_bbox_coder.cpython-310.pyc
- distance_point_bbox_coder.cpython-310.pyc
- legacy_delta_xywh_bbox_coder.cpython-310.pyc
- pseudo_bbox_coder.cpython-310.pyc
- tblr_bbox_coder.cpython-310.pyc
- yolo_bbox_coder.cpython-310.pyc
- __init__.py
- base_bbox_coder.py
- bucketing_bbox_coder.py
- delta_xywh_bbox_coder.py
- distance_point_bbox_coder.py
- legacy_delta_xywh_bbox_coder.py
- pseudo_bbox_coder.py
- tblr_bbox_coder.py
- yolo_bbox_coder.py
- __init__.cpython-310.pyc
- builder.cpython-310.pyc
- iou2d_calculator.cpython-310.pyc
- __init__.py
- builder.py
- iou2d_calculator.py
- __init__.cpython-310.pyc
- builder.cpython-310.pyc
- match_cost.cpython-310.pyc
- __init__.py
- builder.py
- match_cost.py
- __init__.cpython-310.pyc
- base_sampler.cpython-310.pyc
- combined_sampler.cpython-310.pyc
- instance_balanced_pos_sampler.cpython-310.pyc
- iou_balanced_neg_sampler.cpython-310.pyc
- mask_pseudo_sampler.cpython-310.pyc
- mask_sampling_result.cpython-310.pyc
- ohem_sampler.cpython-310.pyc
- pseudo_sampler.cpython-310.pyc
- random_sampler.cpython-310.pyc
- sampling_result.cpython-310.pyc
- score_hlr_sampler.cpython-310.pyc
- __init__.py
- base_sampler.py
- combined_sampler.py
- instance_balanced_pos_sampler.py
- iou_balanced_neg_sampler.py
- mask_pseudo_sampler.py
- mask_sampling_result.py
- ohem_sampler.py
- pseudo_sampler.py
- random_sampler.py
- sampling_result.py
- score_hlr_sampler.py
- __init__.py
- builder.py
- demodata.py
- transforms.py
- __init__.py
- general_data.py
- instance_data.py
- __init__.py
- bbox_overlaps.py
- class_names.py
- eval_hooks.py
- mean_ap.py
- panoptic_utils.py
- recall.py
- __init__.py
- model_wrappers.py
- onnx_helper.py
- pytorch2onnx.py
- __init__.py
- checkloss_hook.py
- ema.py
- set_epoch_info_hook.py
- sync_norm_hook.py
- sync_random_size_hook.py
- yolox_lrupdater_hook.py
- yolox_mode_switch_hook.py
- __init__.py
- mask_target.py
- structures.py
- utils.py
- __init__.py
- bbox_nms.py
- matrix_nms.py
- merge_augs.py
- __init__.py
- dist_utils.py
- misc.py
- __init__.py
- image.py
- palette.py
- __init__.py
- __init__.py
- coco_api.py
- panoptic_evaluation.py
- __init__.py
- auto_augment.py
- compose.py
- formating.py
- formatting.py
- instaboost.py
- loading.py
- test_time_aug.py
- transforms.py
- __init__.py
- distributed_sampler.py
- group_sampler.py
- infinite_sampler.py
- __init__.py
- builder.py
- cityscapes.py
- coco.py
- coco_panoptic.py
- custom.py
- dataset_wrappers.py
- deepfashion.py
- lvis.py
- openimages.py
- utils.py
- voc.py
- wider_face.py
- xml_style.py
- __init__.cpython-310.pyc
- builder.cpython-310.pyc
- __init__.cpython-310.pyc
- csp_darknet.cpython-310.pyc
- darknet.cpython-310.pyc
- detectors_resnet.cpython-310.pyc
- detectors_resnext.cpython-310.pyc
- hourglass.cpython-310.pyc
- hrnet.cpython-310.pyc
- mobilenet_v2.cpython-310.pyc
- pvt.cpython-310.pyc
- regnet.cpython-310.pyc
- res2net.cpython-310.pyc
- resnest.cpython-310.pyc
- resnet.cpython-310.pyc
- resnext.cpython-310.pyc
- ssd_vgg.cpython-310.pyc
- swin.cpython-310.pyc
- trident_resnet.cpython-310.pyc
- __init__.py
- csp_darknet.py
- darknet.py
- detectors_resnet.py
- detectors_resnext.py
- hourglass.py
- hrnet.py
- mobilenet_v2.py
- pvt.py
- regnet.py
- res2net.py
- resnest.py
- resnet.py
- resnext.py
- ssd_vgg.py
- swin.py
- trident_resnet.py
- __init__.cpython-310.pyc
- anchor_free_head.cpython-310.pyc
- anchor_head.cpython-310.pyc
- atss_head.cpython-310.pyc
- autoassign_head.cpython-310.pyc
- base_dense_head.cpython-310.pyc
- base_mask_head.cpython-310.pyc
- cascade_rpn_head.cpython-310.pyc
- centernet_head.cpython-310.pyc
- centripetal_head.cpython-310.pyc
- corner_head.cpython-310.pyc
- deformable_detr_head.cpython-310.pyc
- dense_test_mixins.cpython-310.pyc
- detr_head.cpython-310.pyc
- embedding_rpn_head.cpython-310.pyc
- fcos_head.cpython-310.pyc
- fovea_head.cpython-310.pyc
- free_anchor_retina_head.cpython-310.pyc
- fsaf_head.cpython-310.pyc
- ga_retina_head.cpython-310.pyc
- ga_rpn_head.cpython-310.pyc
- gfl_head.cpython-310.pyc
- guided_anchor_head.cpython-310.pyc
- lad_head.cpython-310.pyc
- ld_head.cpython-310.pyc
- maskformer_head.cpython-310.pyc
- nasfcos_head.cpython-310.pyc
- paa_head.cpython-310.pyc
- pisa_retinanet_head.cpython-310.pyc
- pisa_ssd_head.cpython-310.pyc
- reppoints_head.cpython-310.pyc
- retina_head.cpython-310.pyc
- retina_sepbn_head.cpython-310.pyc
- rpn_head.cpython-310.pyc
- sabl_retina_head.cpython-310.pyc
- solo_head.cpython-310.pyc
- ssd_head.cpython-310.pyc
- tood_head.cpython-310.pyc
- vfnet_head.cpython-310.pyc
- yolact_head.cpython-310.pyc
- yolo_head.cpython-310.pyc
- yolof_head.cpython-310.pyc
- yolox_head.cpython-310.pyc
- __init__.py
- anchor_free_head.py
- anchor_head.py
- atss_head.py
- autoassign_head.py
- base_dense_head.py
- base_mask_head.py
- cascade_rpn_head.py
- centernet_head.py
- centripetal_head.py
- corner_head.py
- deformable_detr_head.py
- dense_test_mixins.py
- detr_head.py
- embedding_rpn_head.py
- fcos_head.py
- fovea_head.py
- free_anchor_retina_head.py
- fsaf_head.py
- ga_retina_head.py
- ga_rpn_head.py
- gfl_head.py
- guided_anchor_head.py
- lad_head.py
- ld_head.py
- maskformer_head.py
- nasfcos_head.py
- paa_head.py
- pisa_retinanet_head.py
- pisa_ssd_head.py
- reppoints_head.py
- retina_head.py
- retina_sepbn_head.py
- rpn_head.py
- sabl_retina_head.py
- solo_head.py
- ssd_head.py
- tood_head.py
- vfnet_head.py
- yolact_head.py
- yolo_head.py
- yolof_head.py
- yolox_head.py
- __init__.cpython-310.pyc
- atss.cpython-310.pyc
- autoassign.cpython-310.pyc
- base.cpython-310.pyc
- cascade_rcnn.cpython-310.pyc
- centernet.cpython-310.pyc
- cornernet.cpython-310.pyc
- deformable_detr.cpython-310.pyc
- detr.cpython-310.pyc
- fast_rcnn.cpython-310.pyc
- faster_rcnn.cpython-310.pyc
- fcos.cpython-310.pyc
- fovea.cpython-310.pyc
- fsaf.cpython-310.pyc
- gfl.cpython-310.pyc
- grid_rcnn.cpython-310.pyc
- htc.cpython-310.pyc
- kd_one_stage.cpython-310.pyc
- lad.cpython-310.pyc
- mask_rcnn.cpython-310.pyc
- mask_scoring_rcnn.cpython-310.pyc
- maskformer.cpython-310.pyc
- nasfcos.cpython-310.pyc
- paa.cpython-310.pyc
- panoptic_fpn.cpython-310.pyc
- panoptic_two_stage_segmentor.cpython-310.pyc
- point_rend.cpython-310.pyc
- queryinst.cpython-310.pyc
- reppoints_detector.cpython-310.pyc
- retinanet.cpython-310.pyc
- rpn.cpython-310.pyc
- scnet.cpython-310.pyc
- single_stage.cpython-310.pyc
- single_stage_instance_seg.cpython-310.pyc
- solo.cpython-310.pyc
- sparse_rcnn.cpython-310.pyc
- tood.cpython-310.pyc
- trident_faster_rcnn.cpython-310.pyc
- two_stage.cpython-310.pyc
- vfnet.cpython-310.pyc
- yolact.cpython-310.pyc
- yolo.cpython-310.pyc
- yolof.cpython-310.pyc
- yolox.cpython-310.pyc
- __init__.py
- atss.py
- autoassign.py
- base.py
- cascade_rcnn.py
- centernet.py
- cornernet.py
- deformable_detr.py
- detr.py
- fast_rcnn.py
- faster_rcnn.py
- fcos.py
- fovea.py
- fsaf.py
- gfl.py
- grid_rcnn.py
- htc.py
- kd_one_stage.py
- lad.py
- mask_rcnn.py
- mask_scoring_rcnn.py
- maskformer.py
- nasfcos.py
- paa.py
- panoptic_fpn.py
- panoptic_two_stage_segmentor.py
- point_rend.py
- queryinst.py
- reppoints_detector.py
- retinanet.py
- rpn.py
- scnet.py
- single_stage.py
- single_stage_instance_seg.py
- solo.py
- sparse_rcnn.py
- tood.py
- trident_faster_rcnn.py
- two_stage.py
- vfnet.py
- yolact.py
- yolo.py
- yolof.py
- yolox.py
- __init__.cpython-310.pyc
- accuracy.cpython-310.pyc
- ae_loss.cpython-310.pyc
- balanced_l1_loss.cpython-310.pyc
- cross_entropy_loss.cpython-310.pyc
- dice_loss.cpython-310.pyc
- focal_loss.cpython-310.pyc
- gaussian_focal_loss.cpython-310.pyc
- gfocal_loss.cpython-310.pyc
- ghm_loss.cpython-310.pyc
- iou_loss.cpython-310.pyc
- kd_loss.cpython-310.pyc
- mse_loss.cpython-310.pyc
- pisa_loss.cpython-310.pyc
- seesaw_loss.cpython-310.pyc
- smooth_l1_loss.cpython-310.pyc
- utils.cpython-310.pyc
- varifocal_loss.cpython-310.pyc
- __init__.py
- accuracy.py
- ae_loss.py
- balanced_l1_loss.py
- cross_entropy_loss.py
- dice_loss.py
- focal_loss.py
- gaussian_focal_loss.py
- gfocal_loss.py
- ghm_loss.py
- iou_loss.py
- kd_loss.py
- mse_loss.py
- pisa_loss.py
- seesaw_loss.py
- smooth_l1_loss.py
- utils.py
- varifocal_loss.py
- __init__.cpython-310.pyc
- bfp.cpython-310.pyc
- channel_mapper.cpython-310.pyc
- ct_resnet_neck.cpython-310.pyc
- dilated_encoder.cpython-310.pyc
- dyhead.cpython-310.pyc
- fpg.cpython-310.pyc
- fpn.cpython-310.pyc
- fpn_carafe.cpython-310.pyc
- hrfpn.cpython-310.pyc
- nas_fpn.cpython-310.pyc
- nasfcos_fpn.cpython-310.pyc
- pafpn.cpython-310.pyc
- rfp.cpython-310.pyc
- ssd_neck.cpython-310.pyc
- yolo_neck.cpython-310.pyc
- yolox_pafpn.cpython-310.pyc
- __init__.py
- bfp.py
- channel_mapper.py
- ct_resnet_neck.py
- dilated_encoder.py
- dyhead.py
- fpg.py
- fpn.py
- fpn_carafe.py
- hrfpn.py
- nas_fpn.py
- nasfcos_fpn.py
- pafpn.py
- rfp.py
- ssd_neck.py
- yolo_neck.py
- yolox_pafpn.py
- __init__.cpython-310.pyc
- dropblock.cpython-310.pyc
- pixel_decoder.cpython-310.pyc
- __init__.py
- dropblock.py
- pixel_decoder.py
- __init__.cpython-310.pyc
- base_roi_head.cpython-310.pyc
- cascade_roi_head.cpython-310.pyc
- double_roi_head.cpython-310.pyc
- dynamic_roi_head.cpython-310.pyc
- grid_roi_head.cpython-310.pyc
- htc_roi_head.cpython-310.pyc
- mask_scoring_roi_head.cpython-310.pyc
- pisa_roi_head.cpython-310.pyc
- point_rend_roi_head.cpython-310.pyc
- scnet_roi_head.cpython-310.pyc
- sparse_roi_head.cpython-310.pyc
- standard_roi_head.cpython-310.pyc
- test_mixins.cpython-310.pyc
- trident_roi_head.cpython-310.pyc
- __init__.cpython-310.pyc
- bbox_head.cpython-310.pyc
- convfc_bbox_head.cpython-310.pyc
- dii_head.cpython-310.pyc
- double_bbox_head.cpython-310.pyc
- sabl_head.cpython-310.pyc
- scnet_bbox_head.cpython-310.pyc
- __init__.py
- bbox_head.py
- convfc_bbox_head.py
- dii_head.py
- double_bbox_head.py
- sabl_head.py
- scnet_bbox_head.py
- __init__.cpython-310.pyc
- coarse_mask_head.cpython-310.pyc
- dynamic_mask_head.cpython-310.pyc
- fcn_mask_head.cpython-310.pyc
- feature_relay_head.cpython-310.pyc
- fused_semantic_head.cpython-310.pyc
- global_context_head.cpython-310.pyc
- grid_head.cpython-310.pyc
- htc_mask_head.cpython-310.pyc
- mask_point_head.cpython-310.pyc
- maskiou_head.cpython-310.pyc
- scnet_mask_head.cpython-310.pyc
- scnet_semantic_head.cpython-310.pyc
- __init__.py
- coarse_mask_head.py
- dynamic_mask_head.py
- fcn_mask_head.py
- feature_relay_head.py
- fused_semantic_head.py
- global_context_head.py
- grid_head.py
- htc_mask_head.py
- mask_point_head.py
- maskiou_head.py
- scnet_mask_head.py
- scnet_semantic_head.py
- __init__.cpython-310.pyc
- base_roi_extractor.cpython-310.pyc
- generic_roi_extractor.cpython-310.pyc
- single_level_roi_extractor.cpython-310.pyc
- __init__.py
- base_roi_extractor.py
- generic_roi_extractor.py
- single_level_roi_extractor.py
- __init__.cpython-310.pyc
- res_layer.cpython-310.pyc
- __init__.py
- res_layer.py
- __init__.py
- base_roi_head.py
- cascade_roi_head.py
- double_roi_head.py
- dynamic_roi_head.py
- grid_roi_head.py
- htc_roi_head.py
- mask_scoring_roi_head.py
- pisa_roi_head.py
- point_rend_roi_head.py
- scnet_roi_head.py
- sparse_roi_head.py
- standard_roi_head.py
- test_mixins.py
- trident_roi_head.py
- __init__.cpython-310.pyc
- base_semantic_head.cpython-310.pyc
- panoptic_fpn_head.cpython-310.pyc
- __init__.cpython-310.pyc
- base_panoptic_fusion_head.cpython-310.pyc
- heuristic_fusion_head.cpython-310.pyc
- __init__.py
- base_panoptic_fusion_head.py
- heuristic_fusion_head.py
- __init__.py
- base_semantic_head.py
- panoptic_fpn_head.py
- __init__.cpython-310.pyc
- brick_wrappers.cpython-310.pyc
- builder.cpython-310.pyc
- ckpt_convert.cpython-310.pyc
- conv_upsample.cpython-310.pyc
- csp_layer.cpython-310.pyc
- gaussian_target.cpython-310.pyc
- inverted_residual.cpython-310.pyc
- make_divisible.cpython-310.pyc
- misc.cpython-310.pyc
- normed_predictor.cpython-310.pyc
- panoptic_gt_processing.cpython-310.pyc
- positional_encoding.cpython-310.pyc
- res_layer.cpython-310.pyc
- se_layer.cpython-310.pyc
- transformer.cpython-310.pyc
- __init__.py
- brick_wrappers.py
- builder.py
- ckpt_convert.py
- conv_upsample.py
- csp_layer.py
- gaussian_target.py
- inverted_residual.py
- make_divisible.py
- misc.py
- normed_predictor.py
- panoptic_gt_processing.py
- positional_encoding.py
- res_layer.py
- se_layer.py
- transformer.py
- __init__.py
- builder.py
- __init__.cpython-310.pyc
- collect_env.cpython-310.pyc
- contextmanagers.cpython-310.pyc
- logger.cpython-310.pyc
- misc.cpython-310.pyc
- setup_env.cpython-310.pyc
- util_mixins.cpython-310.pyc
- __init__.py
- collect_env.py
- contextmanagers.py
- logger.py
- misc.py
- profiling.py
- setup_env.py
- util_mixins.py
- util_random.py
- __init__.py
- version.py
- llava_llama.py
- builder.py
- clip_encoder.py
- conversation.py
- llava_with_region_arch.py
- mm_utils.py
- __init__.py
- common.py
- image_encoder.py
- mask_decoder.py
- prompt_encoder.py
- sam.py
- transformer.py
- __init__.py
- transforms.py
- __init__.py
- build_sam.py
- layers.py
- Legion.py
- default.txt
- regenerator.txt
- eval.py
- eval.sh
- train.py
- train.sh
- infer.py
- infer.sh
- train.py
- train.sh
- merge_lora_weights.py
- step1.sh
- step2.sh
- inpainter.py
- inpainter.sh
- reflection_infer.py
- regenerator.py
- regenerator.sh
- utils.py
- README.md
// repository documentation
Was this content helpful?
(0 ratings)
