Giter VIP home page Giter VIP logo

neuraltalk2's Issues

Flickr8k.json question

How did you make a json file for flickr8k? I have made one in .txt file and transform it to .json .But when I do the prepro.py .The command shows:

$python prepro.py --input_json flickr/flickr8k_raw.json --num_val 5000 --num_test 5000 --images_root flickr/images --word_count_threshold 5 --output_json flikcr/flickr8k.json --output_h5 flickr/flickr8ktalk.h5
parsed input parameters:
{
"output_json": "flikcr/flickr8k.json",
"images_root": "flickr/images",
"input_json": "flickr/flickr8k_raw.json",
"word_count_threshold": 5,
"max_length": 16,
"output_h5": "flickr/flickr8ktalk.h5",
"num_test": 5000,
"num_val": 5000
}
Traceback (most recent call last):
File "prepro.py", line 240, in
main(params)
File "prepro.py", line 157, in main
imgs = json.load(open(params['input_json'], 'r'))
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 433 column 308 (char 82428)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.