tf-centernet
CenterNet implementation with Tensorflow 2.
Install
pip instal tf-centernet
Example
Object detection
import numpy as np
import PIL.Image
import centernet
# Default: num_classes=80
obj = centernet.ObjectDetection(num_classes=80)
# Default: weights_path=None
# num_classes=80 and weights_path=None: Pre-trained COCO model will be loaded.
# Otherwise: User-defined weight file will be loaded.
obj.load_weights(weights_path=None)
img = np.array(PIL.Image.open('./data/sf.jpg'))[..., ::-1]
# The image with predicted bounding-boxes is created if `debug=True`
boxes, classes, scores = obj.predict(img, debug=True)
Pose estimation
import numpy as np
import PIL.Image
import centernet
# Default: num_joints=17
pe = centernet.PoseEstimation(num_joints=17)
# Default: weights_path=None
# num_joints=17 and weights_path=None: Pre-trained COCO model will be loaded.
# Otherwise: User-defined weight file will be loaded.
pe.load_weights(weights_path=None)
# Adjust this for the better prediction
pe.score_threshold = 0.1
img = np.array(PIL.Image.open('./data/chi.jpg'))[..., ::-1]
# The image with predicted keypoints is created if `debug=True`
boxes, keypoints, scores = pe.predict(img, debug=True)
TODO
- Object detection
- Pre-trained model for object detection with Hourglass-104
- Pose estimation
- Pre-trained model for pose estimation with Hourglass-104
- DLA-34 backbone and pre-trained models
- Training function and Loss definition
- Training data augmentation
Metadata
Release files for tf-centernet 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tf-centernet-1.0.6.tar.gz | 8.2 kB | Without provenance | Details for tf-centernet-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tf_centernet-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for tf_centernet-1.0.6-py3-none-any.whl |
Total release size: 27.6 kB
Release files / tf-centernet-1.0.6.tar.gz
| Download URL | tf-centernet-1.0.6.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78b1808323452f07887986723d6f2d77030fbc08b7dc119af0f6ac20750b9e08
|
|
BLAKE2b-256 checksum How to use checksums |
37bf1586ba35fe2612333978fb778fa12b6ae563af3bc659df40295ce6f14b89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Release files / tf_centernet-1.0.6-py3-none-any.whl
| Download URL | tf_centernet-1.0.6-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50180f29181ef0b96f67683d07db5a5fb241f42f306f8bf2a66465e4c2198c22
|
|
BLAKE2b-256 checksum How to use checksums |
f553febbe24f1a2e8084d921f6c3996da7a4d0a5296a64f42b25e6ee4cda0c0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Security for tf-centernet 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.