yangxuntu / SGAE

220 stars 48 forks source link

Sentence scene graph #24

Open Kerry-zzx opened 4 years ago

Kerry-zzx commented 4 years ago

Hello,Thanks for your nice code. I have one question, you wrote: 1.For sentence scene graph, you can directly download the revised code in spice-1.0.jar and create_coco_sg.py, put spice-1.0.jar in /coco-caption/pycocoevalcap/spice, then you should set coco_use as coco_train or coco_val in file create_coco_sg.py, then run this code and the sentence scene graphs are generated in /coco-caption/pycocoevalcap/spice/sg.json.

But for create_coco_sg.py. we can just get a spice score, there is no code to generate sentence scene graph. score, scores = scorer.compute_score(gts, res)

Kien085 commented 4 years ago

7 Try looking at this and the show_sg.py code that the author has in the google drive

1180300611haobowen commented 2 years ago

The authors modified the Java code in Spice-1.0 to generate sg.json, but very slowly