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.131.tar.gz
(21.9 kB
view hashes)
Built Distribution
Close
Hashes for cjm-yolox-pytorch-0.0.131.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5324ac915fabab0440ac7319ced5879815c445639d067a1b8e5e1b2191a79436 |
|
MD5 | 448b6d6affb89bbcd8919ff4be6c6eb0 |
|
BLAKE2b-256 | b2ebf552e4731f259e25fffdfc0bb500a963979a5899788a8186e98d9e1670f6 |
Close
Hashes for cjm_yolox_pytorch-0.0.131-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ba6b722c300d375953445d3c216de0fb3432f1de3935a7927316ccfe92d8ba7 |
|
MD5 | 7ed8f8d84b6b9ef3a78952f1d5f6d8e9 |
|
BLAKE2b-256 | 0a0f4003d5678713bbaa99bf732436d7526341685e97e1cb17677394a05695b8 |