-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NameError: name 'CaptionOntology' is not defined #7
Comments
@shashi-netra from autodistill.detection import CaptionOntology (just include this in your code) |
Would be great to add this to the Quickstart. Also now getting a new error: 'LLaVA' object is not callable. Would be great to do a refresh on the quickstart & documentation since these syntax issues continue to be an issue. |
@shashi-mit To help me understand where the error is specifically occurring, could you please give the code and error screenshot? |
This is my code and I get this error
|
@Samuel5106 can you please help with this error |
It is incorrect to utilize the object llava_model as a function in your code, as suggested by the error 'LLaVA' object is not callable. This usually occurs when you attempt to call an object method instead of the object itself. To remedy this, locate the appropriate technique to apply for predicting the frames by consulting the LLaVA class's implementation or documentation. If a predict or comparable method exists, you ought to use it rather than calling the object directly. The run_llava function can be changed as follows to invoke the appropriate method on the llava_model object: `from autodistill_llava import LLaVA llava_model = LLaVA( def read_video(video_url): def run_llava(video_file): def process_videos():
` |
I am trying to use this tool and run a simple script to test it out, but get this error. Am i I missing an import or something?
Sorry if this is some oversight, but could use some help.
The text was updated successfully, but these errors were encountered: