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.117.tar.gz
(22.0 kB
view hashes)
Built Distribution
Close
Hashes for cjm-yolox-pytorch-0.0.117.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c136b3b9fe9e1650d33c71430e51df5af2b4af798835bb219de39a451b4b33d |
|
MD5 | c2e0bdcb1a8ced803c16ceeb36f59e57 |
|
BLAKE2b-256 | 7166e2a616432e0e0bd4ae7a0c6c787a7fee6fc1d8985462292ec69459454459 |
Close
Hashes for cjm_yolox_pytorch-0.0.117-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f321fd7c2009d93d64cfc24a5081966c811c01f84b2267c5854b905f17e712f1 |
|
MD5 | 0e020d3cf5d895f0681ee6ff8b5f4490 |
|
BLAKE2b-256 | f6199d35314a7fd1675ba7815d2b1a15dc4039ac8f1b9af809aa30d393c38afb |