Skip to main content

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.119.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cjm_yolox_pytorch-0.0.119-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file cjm-yolox-pytorch-0.0.119.tar.gz.

File metadata

  • Download URL: cjm-yolox-pytorch-0.0.119.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for cjm-yolox-pytorch-0.0.119.tar.gz
Algorithm Hash digest
SHA256 a131239d5c967d5376b6d8a084e7faec0e565bc1c72e92a29448ff90f08a8d08
MD5 21946f80f7c092ff9a4fc6e620dd9b40
BLAKE2b-256 fc4345b656a8326c8e0fb1cfb37d3929f76325623019f16780f27ed2b840933e

See more details on using hashes here.

File details

Details for the file cjm_yolox_pytorch-0.0.119-py3-none-any.whl.

File metadata

File hashes

Hashes for cjm_yolox_pytorch-0.0.119-py3-none-any.whl
Algorithm Hash digest
SHA256 2cd6179e846f3a62f013724f7a839e7ce8304f31d9923fcb278b4d1839d8e80c
MD5 3e28595bc3922a17ca306c4a37265b65
BLAKE2b-256 62c69bbea52030058c57b2d01649dfa2acf5df8f446d3179b1c4aa2d22dab9c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page