Open qiao-lang1997 opened 2 years ago
Hi @qiao-lang1997, sorry to hear you're having trouble.
Can you try running that command with the --debug
flag and share the output you're seeing?
sudo cog --debug predict -i image ...
(Tip for next time: Pasting the raw text of the output may be useful than a screenshot because it's searchable.)
Seems to be a download failure.
[stage-0 3/8] RUN curl https://pyenv.run | bash && git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest && pyenv install-latest "3.8" && pyenv global $(pyenv install-latest --print "3.8") && pip install "wheel<1":
8 1.009 % Total % Received % Xferd Average Speed Time Time Time Current
8 1.009 Dload Upload Total Spent Left Speed
100 270 100 270 0 0 237 0 0:00:01 0:00:01 --:--:-- 237
8 2.417 curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
8 2.421 /bin/sh: 1: pyenv: not found
8 2.424 Cloning into '/plugins/pyenv-install-latest'...
8 3.772 /bin/sh: 1: pyenv: not found
executor failed running [/bin/sh -c curl https://pyenv.run | bash && git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest && pyenv install-latest "3.8" && pyenv global $(pyenv install-latest --print "3.8") && pip install "wheel<1"]: exit code: 127 ⅹ Failed to build Docker image: exit status 1
cog.yaml
image: r8.im/rmokady/clip_prefix_caption
build: gpu: true cuda: "10.2"
system_packages:
"libglib2.0-0"
python_version: "3.8"
python_packages:
predict: "predict.py:Predictor"
I am a newbie. I can't run the code from CLIP_prefix_caption. Hope to get your help, thank you.