-
Notifications
You must be signed in to change notification settings - Fork 249
Closed
Description
I suffer the exception that replicate.exceptions.ReplicateError: The specified version does not exist (or perhaps you don't have permission to use it?)
. And the code I use, and the specific terminal output are as follows:
def get_response_llava(img, prompt="Describe this image.", top_p=1, max_tokens=1024, temperature=0.2):
with open(img, "rb") as file:
data = base64.b64encode(file.read()).decode('utf-8')
image = f"data:application/octet-stream;base64,{data}"
output = replicate.run(
"yorickvp/llava-13b:b5f6212d032508382d61ff00469ddda3e32fd8a0e75dc39d8a4191bb742157fb",
input={
"image": image,
"top_p": top_p,
"prompt": prompt,
"max_tokens": max_tokens,
"temperature": temperature
}
)
response = ""
for item in output:
response += item
return output, response
Traceback (most recent call last):
File "/home/luling/TestMyFiles/ICLR-25/test.py", line 8, in <module>
item_list, response = get_response_llava(img_path)
File "/home/luling/TestMyFiles/ICLR-25/tools.py", line 13, in get_response_llava
output = replicate.run(
File "/home/luling/anaconda3/envs/pytorch/lib/python3.8/site-packages/replicate/client.py", line 139, in run
prediction = self.predictions.create(version=version, **kwargs)
File "/home/luling/anaconda3/envs/pytorch/lib/python3.8/site-packages/replicate/prediction.py", line 210, in create
resp = self._client._request(
File "/home/luling/anaconda3/envs/pytorch/lib/python3.8/site-packages/replicate/client.py", line 80, in _request
raise ReplicateError(resp.json()["detail"])
replicate.exceptions.ReplicateError: The specified version does not exist (or perhaps you don't have permission to use it?)
I remember that no bugs in this py file a few months ago. Is it because I used the free trails at that time and I must set up my billing in the official website now? or other reasons?
Thanks for any help!!!
Metadata
Metadata
Assignees
Labels
No labels