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.1.tar.gz
(6.2 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.1.tar.gz.
File metadata
- Download URL: deadlift-0.1.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f30c8fdc24990c8329dc19c92b9f5eebb4308412d56e27da8aaa5ff5df2d31e7
|
|
| MD5 |
204dd4157873c3165d1db568afde00fe
|
|
| BLAKE2b-256 |
b4c0e35d41972d634cbce798f9f9416bad744f9166ebdf5268fbbcac50ce2b98
|
File details
Details for the file deadlift-0.1.1-py3-none-any.whl.
File metadata
- Download URL: deadlift-0.1.1-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 |
f66d2f0a81b82c9b4743ff9898bdfecc0bf087653b1bb7bf267810f5f8a60f76
|
|
| MD5 |
84d45f71874f1c7939948cad3a0e99a1
|
|
| BLAKE2b-256 |
3e4b2c366e389a6a5b2f4623fdd24bd03660be274fcf8844495ff01badd121cf
|