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.129.tar.gz
(20.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cjm-yolox-pytorch-0.0.129.tar.gz.
File metadata
- Download URL: cjm-yolox-pytorch-0.0.129.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f163a34a73f30899f10570180322af0ec049455652ad94bd4b3408c2c5a67926
|
|
| MD5 |
e728c64fac5a2016b3e2d57c6967480f
|
|
| BLAKE2b-256 |
92b1d35f9e8e9de81c896ceaa01a3b43889f18763b0aeebac5ade7abbb78f2f1
|
File details
Details for the file cjm_yolox_pytorch-0.0.129-py3-none-any.whl.
File metadata
- Download URL: cjm_yolox_pytorch-0.0.129-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eabd9ee1fcb3281fbfbf558048a233e242518d1a3143ff2aaa2cdd98145546fb
|
|
| MD5 |
a84eeb967e8e9b3f2fc23e2545643ce4
|
|
| BLAKE2b-256 |
2460de4154e4adb71604e998096af2d084dbc4eec262fcdef26045d50adc4c1c
|