Scene-Graph-Benchmark.pytorch
Scene-Graph-Benchmark.pytorch copied to clipboard
Some error in prediction(SGDet) on custom images.
❓ Questions and Help
When I use the command line following for SGDet: CUDA_VISIBLE_DEVICES=0 python -m torch.distributed.launch --master_port 10027 --nproc_per_node=1 tools/relation_test_net.py --config-file "configs/e2e_relation_X_101_32_8_FPN_1x.yaml" MODEL.ROI_RELATION_HEAD.USE_GT_BOX False MODEL.ROI_RELATION_HEAD.USE_GT_OBJECT_LABEL False MODEL.ROI_RELATION_HEAD.PREDICTOR CausalAnalysisPredictor MODEL.ROI_RELATION_HEAD.CAUSAL.EFFECT_TYPE none MODEL.ROI_RELATION_HEAD.CAUSAL.FUSION_TYPE sum MODEL.ROI_RELATION_HEAD.CAUSAL.CONTEXT_LAYER motifs TEST.IMS_PER_BATCH 1 DTYPE "float16" GLOVE_DIR /home/kaihua/glove MODEL.PRETRAINED_DETECTOR_CKPT /home/kaihua/checkpoints/causal-motifs-sgdet OUTPUT_DIR /home/kaihua/checkpoints/causal-motifs-sgdet TEST.CUSTUM_EVAL True TEST.CUSTUM_PATH /home/kaihua/checkpoints/custom_images DETECTED_SGG_DIR /home/kaihua/checkpoints/your_output_path
(In particular, my custom images is visual genome datasets) It occurs following mistakes, "AttributeError: 'VGDataset' object has no attribute 'img_info', i am very confused. And I go to find the details of visual_genome.py, in 65 line, there is a line "self.img_info = [self.img_info[i] for i in np.where(self.split_mask)[0]]", the use of self.img_info is ealier than the defination of self.img_info. So i don't know what should i do.
Traceback (most recent call last):
File "tools/relation_test_net.py", line 112, in
Please refer to https://github.com/KaihuaTang/Scene-Graph-Benchmark.pytorch/issues/69
Since I'm working on another project, I don't have GPUs to debug. If it works, please tell me. Thank you.