I'm trying to deploy this cog to replicate, and was able to push it successfully using the cog push
command
Loading pipeline...
Traceback (most recent call last):
File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 326, in load_config
config_file = hf_hub_download(
File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 120, in _inner_fn
return fn(*args, **kwargs)
File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1221, in hf_hub_download
raise LocalEntryNotFoundError(
huggingface_hub.utils._errors.LocalEntryNotFoundError: Cannot find the requested files in the disk cache and outgoing traffic has been disabled. To enable hf.co look-ups and downloads online, set 'local_files_only' to False.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/cog/server/worker.py", line 185, in _setup
run_setup(self._predictor)
File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/cog/predictor.py", line 49, in run_setup
predictor.setup()
File "/src/predict.py", line 25, in setup
self.pipe = StableDiffusionPipeline.from_pretrained(
File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/diffusers/pipeline_utils.py", line 459, in from_pretrained
config_dict = cls.load_config(
File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 354, in load_config
raise EnvironmentError(
OSError: stabilityai/stable-diffusion-2-1 does not appear to have a file named model_index.json.
Traceback (most recent call last):
File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/cog/server/runner.py", line 291, in setup
for event in worker.setup():
File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/cog/server/worker.py", line 126, in _wait
raise FatalWorkerException(raise_on_error + ": " + done.error_detail)
cog.server.exceptions.FatalWorkerException: Predictor errored during setup: stabilityai/stable-diffusion-2-1 does not appear to have a file named model_index.json.