tylin / coco-caption

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It might be a problem of java.

faaizhashmi opened this issue · comments

commented

It might be a problem of java.
Try this:

  1. Install java on your linux system, if it wasn't installed.
  2. In the initialization function of meteor.py:
def __init__(self):
    self.meteor_cmd = ['java', '-jar', '-Xmx2G', METEOR_JAR, '-', '-', '-stdio', '-l', 'en', '-norm']
    self.meteor_p = subprocess.Popen(' '.join(self.meteor_cmd),\     # change this line
        cwd=os.path.dirname(os.path.abspath(__file__)), \
        stdin=subprocess.PIPE, \
        stdout=subprocess.PIPE, \
        stderr=subprocess.PIPE,\
        shell=True)
        # Used to guarantee thread safety
        self.lock = threading.Lock()

Originally posted by @brucejing-github in #17 (comment)

It was changed, but it didn't work

image
You need to find the Java library file in your environment