peteanderson80 / coco-caption Goto Github PK
View Code? Open in Web Editor NEWAdds SPICE metric to coco-caption evaluation server codes
Home Page: http://panderson.me/spice
License: Other
Adds SPICE metric to coco-caption evaluation server codes
Home Page: http://panderson.me/spice
License: Other
Hi,
Thank you very much for the evaluation script. For my applications, I needed a Python 3.5 version of this script so I converted this code to be compatible with Python 3.5 and was wondering whether I can create a pull request to include it either in this repo or somewhere else.
Thanks again
Hi, whenever i run spice.Compute_Score() locally i get this error:
CalledProcessError: Command '['java', '-jar', '-Xmx8G', 'spice-1.0.jar', '/Users/peter/opt/anaconda3/lib/python3.8/site-packages/pycocoevalcap/spice/tmp/tmpbq7g34li', '-cache', '/Users/peter/opt/anaconda3/lib/python3.8/site-packages/pycocoevalcap/spice/cache', '-out', '/Users/peter/opt/anaconda3/lib/python3.8/site-packages/pycocoevalcap/spice/tmp/tmpx6ykjgr7', '-subset', '-silent']' returned non-zero exit status 1.
However it seems to work on google colab? Could you kindly help me out?
Hi!
I am having issues implementing SPICE.Please help
Error: Could not score batched file input:
java.lang.ClassCastException: org.json.simple.JSONArray cannot be cast to java.lang.String
at edu.anu.spice.SpiceScorer.scoreBatch(SpiceScorer.java:95)
at edu.anu.spice.SpiceScorer.main(SpiceScorer.java:60)
Traceback (most recent call last):
File "/content/pycocoevalcap/spice/model_evaluation.py", line 238, in
Val_with_MLE()
File "/content/pycocoevalcap/spice/model_evaluation.py", line 236, in Val_with_MLE
spice_class.compute_score(all_usable_ref,all_gen_sents)
File "/content/pycocoevalcap/spice/test.py", line 78, in compute_score
cwd=os.path.dirname(os.path.abspath(file)))
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['java', '-jar', '-Xmx8G', 'spice-1.0.jar', '/content/pycocoevalcap/spice/tmp/tmpr49ny2ll', '-cache', '/content/pycocoevalcap/spice/cache', '-out', '/content/pycocoevalcap/spice/tmp/tmpl8edcdti', '-subset', '-silent']' returned non-zero exit status 1.
I have an offline version of this project's code that has Word Mover's Distance included and is Python 3 compatible. If I put it up on GitHub can it be merged here?
Also, is this the new official repository for MSCOCO or is it an unofficial fork?
Hi,
I was trying to report the SPICE for our paper; however, we faced multiple problems to make it work. I exactly followed the provided instructions to incorporate the spice into our evaluation procedure.
Anyway, I got the following errors:
Error: Could not score batched file input:
org.fusesource.lmdbjni.LMDBException: MDB_CURSOR_FULL: Internal error - cursor stack limit reached
at org.fusesource.lmdbjni.Util.checkErrorCode(Util.java:44)
at org.fusesource.lmdbjni.Database.get(Database.java:202)
at org.fusesource.lmdbjni.Database.get(Database.java:193)
at org.fusesource.lmdbjni.Database.get(Database.java:186)
at org.fusesource.lmdbjni.Database.get(Database.java:161)
at edu.anu.spice.LmdbTupleDB.getTransaction(LmdbTupleDB.java:96)
at edu.anu.spice.SpiceParser.loadTuplesFromDB(SpiceParser.java:195)
at edu.anu.spice.SpiceParser.loadTuples(SpiceParser.java:245)
at edu.anu.spice.SpiceParser.parseCaptions(SpiceParser.java:251)
at edu.anu.spice.SpiceScorer.scoreBatch(SpiceScorer.java:109)
at edu.anu.spice.SpiceScorer.main(SpiceScorer.java:60)
I was wondering have you ever faced with the problem like above? [This happens once a while] It is worth noting that our system works with MSCOCO evolution server with no problems. I'd be appreciated if you please let me know your comment.
Rasool
The code seems only support spice evaluation in English, how can i obtain the spice scores in languages such as Chinese, Japanese, and Spanish.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.