Open jackyliang opened 1 month ago
@holtskinner any chance you may know the reason why?
I am trying two other things, using a Public Bucket, and double checking gcs bucket permissions
I have the following public URL video (gs://test-public-bucket-123/dog_jumping_short.mp4), and I still get the same error unfortunately.
gsutil ls
to check whether after-authentication, I can find my private bucket file--
Both continue to fail with the same error :/
Hi @jackyliang , are you still getting the same error? I tried your code and it worked on my side.
The error message you're seeing suggests a problem with authentication when calling the API, rather than a permission issue with the GCS bucket. To isolate the cause, could you test get_embeddings()
using text input only and see if it works?
model = MultiModalEmbeddingModel.from_pretrained("multimodalembedding@001")
embeddings = model.get_embeddings(
contextual_text="hello world"
)
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
If you are still having issues, please be sure to include as much information as possible:
Environment details
google-cloud-aiplatform
version: 1.49.0Steps to reproduce
Video embedding failed with the following error: Deadline
Code example
This is exactly the code shared in the Vertex AI Multimodal Embedding Model documentation, with the only addition being my variables and the link to the Google Cloud Storage. I have tested both with a local video file AND a
gcsUri
pathStack trace
Again, I have tried not only the Python sample code, but the cURL commands and Cloud Shell (which should fix all authentication issues, because you need to authenticate prior to use), but they all return the same error.
I have no idea how to fix this issue, and I've tried to isolate as many things as possible.
Workaround
If you are a dev using this, you can workaround the native video embedding not working by using the base64 string method. Convert a video (you will be limited by the video length / size to around 2-3 minute video) to base64 string, then load into the
bytesBase64Encoded
variable instead ofgcsUri