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.101.tar.gz
(22.7 kB
view hashes)
Built Distribution
Close
Hashes for cjm-yolox-pytorch-0.0.101.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e1d162d801ede55819eeb7b4aaf30681904c02a0c1c18485616f21174973735 |
|
MD5 | 19efa0469f722863ab4cd43c7f1aa708 |
|
BLAKE2b-256 | 98b0aa6efd156a9efa83548053c8bdfedf5f776968fde484b5343918844e89e6 |
Close
Hashes for cjm_yolox_pytorch-0.0.101-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7086beea07c80287683b9ccf465a5974fa2b73eea29791a8c8e2b98994c41c86 |
|
MD5 | 0f3f8b9752f11f69ca1385ca1284ab2d |
|
BLAKE2b-256 | 27114fb4075ca10985d52c4ff3f38c00b65e35ee67f86aabc90a3fea3498f329 |