giangnguyen2412 / Neural-Baby-Talk-python3

NBT with some changes to run smoothly with python3
MIT License
16 stars 3 forks source link

how to use demo.py #2

Closed BillLZD closed 4 years ago

BillLZD commented 5 years ago

Excuse,me. I ran demo.py. The captions are very strange. However,the detection part performs well. Besides, the objects detected in the photo have no relationship with the corresponding caption. The objects don't appera in the caption. Why the demo.py generates captions like this?

ID:184386 sentence: wipe [ bulldog ] doing wipe afraid form payer wipe afraid form ID:231037 sentence: wipe [ ship ] undergoing wipe [ baseball bat ] outdoor heating rubs wipe animal ID:467437 sentence: wipe [ ship ] serene outdoor wipe [ bulldog ] doing wipe [ ship ] ID:258588 sentence: wipe [ ship ] corsage wipe afraid reflected payer cub housed stitch kids ID:460251 sentence: wipe [ clock ] converses skating outdoor heating rubs wipe moped tried ID:357978 sentence: wipe hull rubs [ bagel ] preparation carved wipe tried ID:571641 sentence: wipe alive receiver doing wipe alive payer wipe [ pontoon ] ID:163348 sentence: wipe [ schnauzer ] payer wipe [ pontoon ] outdoor wipe receiver ID:298978 sentence: wipe [ jetliner ] skating corsage wipe thermos doing wipe [ macbook ] ID:258628 sentence: wipe [ ship ] horns stitch kids outdoor wipe western ID:118432 sentence: wipe hull rubs [ bagel ] preparation outdoor heating rubs wipe bins bubbles [ cockatoo ] ID:205230 sentence: wipe hull rubs [ kids ] skating carved wipe [ cupcake ] ID:345136 sentence: wipe civilians [ walker ] skating corsage wipe bins doing wipe prints payer afraid [ cockatoo ] ID:404613 sentence: wipe [ kid ] horns sprout wipe [ foal ] corsage wipe bins ID:131089 sentence: wipe chalk [ walker ] horns stitch doing wipe ceramics ID:432570 sentence: wipe [ biker ] doing who corsage reception skating outdoor wipe tried ID:214224 sentence: wipe [ jetliner ] horns preparation session wipe southeast doing wipe envelopes rubs [ skateboarded ] ID:199764 sentence: wipe hull rubs [ bagel ] preparation carved wipe tried doing wipe rugs ID:176312 sentence: wipe [ jetliner ] preparation corsage dandelion rubs wipe served sprout wipe [ firetruck ] ID:453297 sentence: wipe [ firetruck ] horns skating outdoor wipe tried bathtub useful wipe terminal ID:529668 sentence: wipe [ jetliner ] sprout wipe [ firetruck ] corsage dandelion rubs wipe rugs ID:551107 sentence: wipe civilians [ traffic light ] preparation corsage dandelion rubs wipe [ macbook ] ID:413120 sentence: wipe inspired [ biker ] fun doing prints removing uneaten ID:369771 sentence: wipe straining rubs crotch doing wipe [ ski ] rubs crotch payer wipe [ ski ] rubs standing

giangnguyen2412 commented 5 years ago

I am sorry for late reply, have not noticed so far :( Did you solve the problem, I am running normally and I think may you did not run preprocessing step (or you just need to download the preprocessed data and put into data/coco/)

giangnguyen2412 commented 5 years ago

Download them from this: https://www.dropbox.com/s/1t9nrbevzqn93to/coco.tar.gz?dl=0

giangnguyen2412 commented 5 years ago

Capture What I am getting now

giangnguyen2412 commented 5 years ago

Capture When running evaluation

wlybug commented 5 years ago

I ran into the same problem, but not the reason you mentioned above.

giangnguyen2412 commented 5 years ago

Here I see that the textual caption and visual caption are both wrong? If you just run demo.py without any modification, I dont have any clues why you get this..

wlybug commented 5 years ago

The image can be detected normally but the title generation is not the detected one.for example eg:a [ backpack ] on a [ cheesecake ] on a street。 But the picture does not detect the two words, [ backpack ] , [ cheesecake ],But it’s detected as a person。

giangnguyen2412 commented 5 years ago

Yeah, correct! I am re-running and see that textual caption is correct but visual caption is wrong, I put another here but I dont expect the answer from the author tbh, since he has not reply any issues for long https://github.com/jiasenlu/NeuralBabyTalk/issues/43

giangnguyen2412 commented 5 years ago

I am trying to figure out, If any progress, I will let you know

wlybug commented 5 years ago

thank you very much

jhhuang96 commented 5 years ago

@wlybug hi, I encountered the same issue that correct sentence template but incorrect visual words by detector. So how can I fix it?

PRYUS commented 5 years ago

Hey @luulinh90s ! Have you been able to run the demo on a custom image? Kindly let me know if you have.

giangnguyen2412 commented 5 years ago

I think if we use the custom image, the object in the image and the object proposals provided by the author are not match, then the result will be incorrect. Anyway, I still can't, you should contact the author for the answer tbh :(

RamatovInomjon commented 5 years ago

Hi, can anyone help me to run the demo please? image

RamatovInomjon commented 5 years ago

I didn't understand what should I enter to continue

RamatovInomjon commented 5 years ago

@luulinh90s Can you guide please? what I'm doing wrong?

giangnguyen2412 commented 5 years ago

@RamatovInomjon you just need to press c then enter to continue the program or simply press Ctrl-D

RamatovInomjon commented 5 years ago

@luulinh90s thanks for your quick reply, it is started downloading .vector_cache/glove.6B.zip file, I open the code but didn't get what this file for? thanks for your time again

giangnguyen2412 commented 5 years ago

This file is for word embedding, its nice to use this or you can choose what embedding tool you want rather than GloVE

RamatovInomjon commented 5 years ago

@luulinh90s thanks for support