coco-caption icon indicating copy to clipboard operation
coco-caption copied to clipboard

It might be a problem of java.

Open faaizhashmi opened this issue 6 years ago • 2 comments

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 https://github.com/tylin/coco-caption/issues/17#issuecomment-333730601

faaizhashmi avatar Sep 23 '19 18:09 faaizhashmi

It was changed, but it didn't work

SmallSmallQiu avatar Nov 13 '19 02:11 SmallSmallQiu

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

SmallSmallQiu avatar Dec 02 '19 07:12 SmallSmallQiu