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.128.tar.gz
(21.9 kB
view hashes)
Built Distribution
Close
Hashes for cjm-yolox-pytorch-0.0.128.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d87d8f8d068d20a424a590edfee1889b13798b195e0daf761748875643c0c2e |
|
MD5 | 7d9972356810a5becaa98fdd2262d0a0 |
|
BLAKE2b-256 | 927ed1e9088394242abac9fcf6fbd0b5a77260775fd97a396f158abfbe9d8131 |
Close
Hashes for cjm_yolox_pytorch-0.0.128-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fadf73212c1c43f5369e4d0445d752c6238ba9b8d04b370a7d0d9fb66600e02f |
|
MD5 | b78dd60abb50ccc2d7699c349ed7053f |
|
BLAKE2b-256 | d0e6ddf1496980794ddac4abbf43f03b7a60921709d347c932346922ea99f26a |