A personal ML model toolkit. Plug-and-play inference for various deep learning models.
Project description
deadlift
A personal ML model toolkit. Plug-and-play inference for various deep learning models.
Installation
pip install deadlift
Model weights are downloaded automatically from HuggingFace on first use.
Crack Detection
from deadlift.crack import CrackModel
model = CrackModel(device="auto")
result = model.predict("image.jpg")
# result["crack_mask"] — binary mask (numpy array)
# result["crack_prob"] — probability heatmap (numpy array)
# result["detections"] — list of filtered detections with bboxes
# result["overlay"] — annotated image with bounding boxes
Configuration
# Fast mode
model = CrackModel(device="mps", mirroring=False, tile_step=0.75)
# Max accuracy
model = CrackModel(device="cuda", mirroring=True, tile_step=0.5)
# Custom confidence threshold
result = model.predict("image.jpg", min_confidence=0.5, min_area=200)
Save outputs
import cv2
result = model.predict("image.jpg")
cv2.imwrite("overlay.png", result["overlay"])
cv2.imwrite("mask.png", result["crack_mask"])
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
deadlift-0.1.0.tar.gz
(6.1 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 deadlift-0.1.0.tar.gz.
File metadata
- Download URL: deadlift-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44242c751ffa087b1967df4868c50b6c3791d4cefa53d21ccedcad8e529cc3b1
|
|
| MD5 |
9d3459c4c5b2a169242e9e3d841d4b87
|
|
| BLAKE2b-256 |
c050b96832eae5fc300101282df785d8317fd4d0f47e97ce5548845d219be41b
|
File details
Details for the file deadlift-0.1.0-py3-none-any.whl.
File metadata
- Download URL: deadlift-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2084cd62a3c9860380c549eab249bbdb86e12a622140e28693ea5f34c8df5462
|
|
| MD5 |
5ed3a6915c8f14fc22fb37864369877f
|
|
| BLAKE2b-256 |
aedabb986a899b8d7d3188c8712603561903267b8a2211f60254eea8ca40144b
|