Cog predict error
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.
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
@RobBW @ajmeese7
Since cog relies on docker I found that running sudo cog predict got me through this issue.
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.
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
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!
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