fengyang0317 / unsupervised_captioning

Code for Unsupervised Image Captioning
MIT License
215 stars 51 forks source link

some questions #29

Closed ironmanx1 closed 4 years ago

ironmanx1 commented 4 years ago

$ python preprocessing/crawl_descriptions.py person 1000 0 [] bicycle 1000 0 [] car 1000 0 [] motorbike 1000 0 [] aeroplane 1000 0 [] ... Is this result normal? How to solve it?Looking forward to your reply.

sorry to bother you,i also get the same results in this step,but i don't know change which part in crawl_descriptions.py file.Can you help me?thank you~

fengyang0317 commented 4 years ago

Shutterstock regularly changes its APIs. The crawl script is not maintained anymore.

ironmanx1 commented 4 years ago

very very thank you for your reply. but i also have some questions that i failed to find solutions in interent yesterday.

1.Whether the Shutterstock's APIs are free?because i can't find its api through F12->network->scripts.

2.And if i want just crawl some images in Baidu Image instead of Shutterstock,does this work?

3.And which line in crawl_descriptions.py file represent the api that i want to change?Is this two lines?:

{ url = ('https://www.shutterstock.com/search?language=en&amp;image_type=photo&amp;'        'searchterm=%s&page=%d') pattern = '<script type="application/ld+json">([.*])</script>' }

sorry i know what i ask are naive because it is Not long after i join in Computer Industry.   so your help may means a lot to me. very Sincerely look for you reply! thank you again!

------------------ 原始邮件 ------------------ 发件人: "fengyang0317/unsupervised_captioning" <notifications@github.com>; 发送时间: 2020年10月21日(星期三) 中午11:01 收件人: "fengyang0317/unsupervised_captioning"<unsupervised_captioning@noreply.github.com>; 抄送: "cxy"<793952175@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [fengyang0317/unsupervised_captioning] some questions (#29)

Shutterstock regularly changes its APIs. The crawl script is not maintained anymore.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.