Client for CIFAR-10 image classification API
Project description
CIFAR-10 Client
A Python client for interacting with the CIFAR-10 image classification API.
Installation
pip install cifar10-client
Quick Start
from cifar10_client import CIFAR10Client
# Initialize client
client = CIFAR10Client("http://your-api-url:5000")
# Single prediction
result = client.predict_single("path/to/image.jpg")
print(f"Prediction: {result['prediction']} ({result['confidence']}%)")
# Top 3 predictions
result = client.predict_top3("path/to/image.jpg")
for pred, conf in zip(result['predictions'], result['confidences']):
print(f"{pred}: {conf}%")
# Batch prediction
results = client.predict_batch(["image1.jpg", "image2.jpg"])
for item in results['results']:
print(f"\nFile: {item['filename']}")
for pred, conf in zip(item['predictions'], item['confidences']):
print(f"{pred}: {conf}%")
CLI Usage
# Single prediction
cifar10-predict image.jpg
# Top 3 predictions
cifar10-predict --top3 image.jpg
# Batch prediction
cifar10-predict --batch image1.jpg image2.jpg image3.jpg
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flask_image_api-0.0.0.tar.gz
(4.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flask_image_api-0.0.0.tar.gz.
File metadata
- Download URL: flask_image_api-0.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c06dec6094481ea93e3f0d334136c2472a9ec8bf3a14f300f97f2997366fbf1d
|
|
| MD5 |
929fa62408ae1258446efdf4e0791b15
|
|
| BLAKE2b-256 |
571d90a16c229c2780536570ba73aa48505fc7500237d42a13cb24bcf6c4ace9
|
File details
Details for the file flask_image_api-0.0.0-py3-none-any.whl.
File metadata
- Download URL: flask_image_api-0.0.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fe4b6ed073354dc5c9816d1b19aec68db1418e454034446521de7fdf99d2536
|
|
| MD5 |
509eb2dd210fc5c1214c7a7d1fc6fc50
|
|
| BLAKE2b-256 |
d3e8bc8168aaf142f34642031d7b1bd9806565c31304e4a882c2e464fd782267
|