Closed emdupre closed 2 years ago
Note that, unfortunately, it doesn't seem to be a simple substitution -- I believe several of the internal calls will need to be updated as well. Happy to help with that, if this is of interest !
I can look into this over the weekend/next week, if nobody is already!
Hi @emdupre, unfortunately all of the API based decoders are moving targets that are always a pain to stay on top of. Unlike a local algorithm which you can pin, the APIs become unusable.
@qmac thanks for the help! that's awesome. please let me know how that goes, and I can try to help as well.
I would also suggest that you look into local based models, as those have improved substantially. I actually haven't had the time to look at this enough, but they would fall under TFHubExtractor
which allows you to access any extractor from TensorFlow Hub.
One example is this model: https://tfhub.dev/google/faster_rcnn/openimages_v4/inception_resnet_v2/1
That said, I haven't tired this myself, and it could take some work. I'll try to set aside some time to play with this soon! Please, prod me if I don't.
Thank you both !
I am definitely planning on working with additional, locally-deployed models, but for the moment I'm still trying to use up the trial credits I have across a few API providers 😸
That said, I just opened another issue (#473 ) on changes to the Google APIs that seem to also be impacting functionality. So I certainly understand that all of these endpoints are a moving target ! Please let me know how I can help, here.
I'm happy to try to fix these, and if it's a huge problem to we can make the call to deprecate then.
Okay good news! I was able to get the ClarifaiImageExtractor
to work with the clarifai-grpc library.
I'll open a PR with a (broken) implementation, as I need to convert their outputs to pliers internals.
But it shouldn't be too bad because the hardest part is done: actually authenticating and making a valid request.
Hi everyone,
Thanks for making such a great package !
I'm running pliers on a series of videos, and I'd like to include the
ClarifaiAPIImageExtractor
transformer. I get aKeyError
, though, when running the transformer if the python packageclarifai
is in my conda environment.Looking at the clarifai docs, I realized that this package has actually been deprecated in favor of clarifai-grpc. It seems from the dependencies, though, that pliers is still using the original, now deprecated version of the clarifai API.
Is this something that could be updated ?
pliers
version : 0.4.1 fullpip freeze
(with the currentclarifai-grpc
) :