A PyTorch implementation of the YOLOX object detection model based on the mmdetection implementation.
Project description
cjm-yolox-pytorch
Install
pip install cjm_yolox_pytorch
How to use
from cjm_yolox_pytorch.model import MODEL_TYPES, build_model
Select model type
model_type = MODEL_TYPES[0]
model_type
'yolox_tiny'
Build YOLOX model
import torch
yolox = build_model(model_type, 19)
test_inp = torch.randn(1, 3, 256, 256)
with torch.no_grad():
cls_scores, bbox_preds, objectness = yolox(test_inp)
print(f"cls_scores: {[cls_score.shape for cls_score in cls_scores]}")
print(f"bbox_preds: {[bbox_pred.shape for bbox_pred in bbox_preds]}")
print(f"objectness: {[objectness.shape for objectness in objectness]}")
cls_scores: [torch.Size([1, 19, 32, 32]), torch.Size([1, 19, 16, 16]), torch.Size([1, 19, 8, 8])]
bbox_preds: [torch.Size([1, 4, 32, 32]), torch.Size([1, 4, 16, 16]), torch.Size([1, 4, 8, 8])]
objectness: [torch.Size([1, 1, 32, 32]), torch.Size([1, 1, 16, 16]), torch.Size([1, 1, 8, 8])]
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
cjm-yolox-pytorch-0.0.106.tar.gz
(22.6 kB
view hashes)
Built Distribution
Close
Hashes for cjm-yolox-pytorch-0.0.106.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5481b63060b32d5b38837f18a335e0689225a77600d68d27eb8d909d6e4ab3ca |
|
MD5 | cafe0df89b462e2ef65198e39b0ad437 |
|
BLAKE2b-256 | e17a2eee391b8520a1a5bb4117367327e0533c07105fdc35cd403f0df791ce30 |
Close
Hashes for cjm_yolox_pytorch-0.0.106-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76925549b9fa4d168c82832d0afab8dcb3b15b6d8fc53fb4e5ec9db022c6e3d5 |
|
MD5 | deab806519bc43161ddc526b8b715ec4 |
|
BLAKE2b-256 | 79e4bacdb65a53d78ffc6633e66b448746ef8727af7f41fab0b8d43973370b24 |