Comments (4)
Thanks @rok-povsic for your response. I figured it out, it's with the duplicate image_id in the image data. So I can run it now.
from clarifai-python.
Hi @AnkitRai ,
In your case I suspect that the error occurs either because the image ID is already taken or the URL has already been added.
To fix the first case, change the image_id
fields to some unique values. To allow having multiple images with same URL, set allow_dup_url
to True, if this is what you want.
Changing your two image lines to the lines below does both and should fix your problem.
img1 = ClImage(url="https://samples.clarifai.com/metro-north.jpg", image_id="train2", allow_dup_url=True)
img2 = ClImage(url="https://samples.clarifai.com/puppy.jpeg", image_id="puppy2", allow_dup_url=True)
from clarifai-python.
Thanks @rok-povsic for your response. That did work with the sample examples. But it is still showing the error when running the same script on my images. Please see below the POST message I'm getting:
{"status":{"code":11001,"description":"Invalid authentication token","details":"Empty or missing Authorization header","req_id":"xxxxxxxxxxx"},"inputs":[]}
P.S. removing the key with 'xxxxxxxxx'
Any idea?
Thanks
from clarifai-python.
@AnkitRai If the images are available (online) at the specified URLs, this should not happen. Could you provide a sample URL where this happens so I can double check it? However I don't believe this is the reason for the error. Could you double check your API key and make sure that you're using the right ClarifaiApp object/variable (if you maybe have two of them, or something like that)?
Thanks
from clarifai-python.
Related Issues (20)
- TypeError: __init__() missing 1 required positional argument: 'descriptor_pool' HOT 4
- pip install fail on Python 3.6.0 HOT 1
- Is there a way we can get the app details and usage info using the Python API? HOT 7
- Tests are installed to system site-packages
- Import Clarifai works in Django project, but not in vanilla .py file. HOT 1
- Issue in Explicit wait using selenium with Python
- TypeError: Couldn't build proto file into descriptor pool! HOT 2
- How can I get coordinates of bounding box?
- Getting an error in python grpc client HOT 2
- ModuleNotFoundError: No module named 'clarifai.rest' HOT 1
- I have issue with d 'clarifai.rest' HOT 1
- TQDM version HOT 2
- Handler added to root logger
- Loosen requirement constraints
- Consider switching to `python -m build`
- Message type "clarifai.api.ModelVersion" has no field named "train_stats" HOT 2
- ClarifaiApp constructor error HOT 4
- ApiError.response is None if no internet connection HOT 4
- 2.4.2 Commits & Changelog HOT 1
- multiprocessing bug, requests HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clarifai-python.