peteanderson80 / Up-Down-Captioner

Automatic image captioning model based on Caffe, using features from bottom-up attention.
http://www.panderson.me/up-down-attention/
MIT License
243 stars 69 forks source link

Someone have the pretrained faster-rcnn and caption model? #24

Open Cestbon123 opened 4 years ago

Cestbon123 commented 4 years ago

The link of pretrained model in ./scripts/demo.ipynb seems invalid.

EmilRais commented 4 years ago

If you check the file history of scripts/demo.ipynb you will see google storage links were previously used. You can still use those, they actually work - they're marked as "requester pays", so you'll have to pay for the bandwidth used to transfer them but it shouldn't amount to much.

nyj-ocean commented 4 years ago

@EmilRais

If you check the file history of scripts/demo.ipynb you will see google storage links were previously used. How to check the history of scripts/demo.ipynb? Where can I find the history of scripts/demo.ipynb? can you share me the url to downloadlstm_scst_iter_1000.caffemodel.h5?

EmilRais commented 4 years ago

rcnn_weights https://storage.googleapis.com/bottom-up-attention/resnet101_faster_rcnn_final.caffemodel

With the caption weights there's a choice between

cross-entropy trained https://storage.googleapis.com/bottom-up-attention/lstm_iter_60000.caffemodel.h5

self-critical trained https://storage.googleapis.com/bottom-up-attention/lstm_scst_iter_1000.caffemodel.h5

nyj-ocean commented 4 years ago

@EmilRais Thanks for your share

I try to open the url you shared above

https://storage.googleapis.com/bottom-up-attention/lstm_iter_60000.caffemodel.h5
https://storage.googleapis.com/bottom-up-attention/lstm_scst_iter_1000.caffemodel.h5

But both of them can not open

586923907

EmilRais commented 4 years ago

It's a Google Cloud Platform "Requester pays" bucket. It simply means that you - rather than Pete Anderson - will pay for the bandwidth used to transfer the files.

So the error you're getting doesn't mean that the weights are not downloadable, it just means you're not initiating the download properly. Before you can pay for the download, you need to create a Google Cloud Platform account and add billing details. It's a bit cumbersome but it's not too bad.

Read more about it here https://cloud.google.com/storage/docs/using-requester-pays#using

nyj-ocean commented 4 years ago

@EmilRais sorry to bother you again. I can not downloadlstm_scst_iter_1000.caffemodel.h5

But I was very interested in your work. I think your work is great. I want to run demo on my new images.

so can you provide any other ways to download lstm_scst_iter_1000.caffemodel.h5?

hgminh95 commented 4 years ago

I uploaded the models to GG drive:

https://drive.google.com/drive/folders/1KT38ZDgoyCFLTcWlcNgEFpyyHCxqdWw9?usp=sharing

Note that there is limit on download quota, so if you encounter error, you can try again in the next day...