cog icon indicating copy to clipboard operation
cog copied to clipboard

Cog predict error

Open RobBW opened this issue 3 years ago • 5 comments

I have used the Replicate webpage successfully to color and super resolve images in "Run Model" mode. Every image I process in "Run Model" mode is successful. I'm on a 2013 iMac running Catalina. Cog v 0.3.0 installed. I then tried "Cog mode" via terminal and struck problems. cog predict r8.im/pvitoria/chromagan@sha256:0a1bb7572513d3382fa20e22e03789cdb3cb5690d7acd72f3f387f50704087be \ -i image=@/Users/rxxx/Pictures/Scans_in/531004_Alison.jpg ⅹ Failed to determine if r8.im/pvitoria/chromagan@sha256:0a1bb7572513d3382fa20e22e03789cdb3cb5690d7acd72f3f387f50704087be exists: exit status 1 Nothing I have tried has worked to change this error message. cog predict --help seems to be incomplete because it does not explain the first term of the command "r8.im/pvitoria/chromagan@sha256:0a1bb......" which is presumably an authorisation token.

I hope these comments are helpful. I think replicate.com is a superb idea, well executed.

RobBW avatar Apr 27 '22 00:04 RobBW

I am having the exact same issue:

user@computer:~$ cog predict r8.im/pixray/text2image@sha256:5c347a4bfa1d4523a58ae614c2194e15f2ae682b57e3797a5bb468920aa70ebf \
  -i prompts="example prompt"
Failed to determine if r8.im/pixray/text2image@sha256:5c347a4bfa1d4523a58ae614c2194e15f2ae682b57e3797a5bb468920aa70ebf exists: exit status 1

ajmeese7 avatar Jun 17 '22 00:06 ajmeese7

@RobBW @ajmeese7

Since cog relies on docker I found that running sudo cog predict got me through this issue.

micahscopes avatar Jul 22 '22 03:07 micahscopes

Just in case anyone else finds this error and sudo doesn't fix it, make sure you have Docker running already. On my machine, running cog predict without docker resulted in the same error.

love-lena avatar Aug 03 '22 02:08 love-lena

Solution for me was to give the correct docker permissions to the user sudo usermod -aG docker user

As described in https://docs.docker.com/engine/install/linux-postinstall/

Should really be added in the WSL guide https://github.com/replicate/cog/blob/main/docs/wsl2/wsl2.md

FiveBoroughs avatar Sep 05 '22 10:09 FiveBoroughs

Solution for me was to activate docker.

Try to run docker version.

I found that if i run cog predict r8.im/pixray/text2image@sha256:5c347a4bfa1d4523a58ae614c2194e15f2ae682b57e3797a5bb468920aa70ebf --debug

It first try to inspect image in docker!

NicolasMarino avatar Sep 09 '22 20:09 NicolasMarino

In my case the solution was to enable Ubuntu integration setting in Docker Desktop: Settings -> Resources -> WSL Integration -> Enable integration with additional distros: Ubuntu -> Refresh

HashedViking avatar Feb 18 '23 15:02 HashedViking