StephanAkkerman/chart-info-detector

🤗 Hugging Face 来源object-detectionmit35 MBother✓ 2 个校验和今天更新
一条命令提交

在你的模型文件夹旁边运行它。它会制作种子、将文件与 Hugging Face 比对,然后提交。你只需开始做种,并粘贴你账户中的密钥。它只读取你的文件,绝不修改。如果愿意,可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo StephanAkkerman/chart-info-detector ./model-folder
需要做种者 →

Chart Info Detector

This is a fintuned model for detecting objects in financial charts. It uses YOLO12n as its base model, making it a fast and small model. This model is trained on my own datasets of financial charts posted on Twitter, which I labeled myself.

Inteded uses

chart-info-detector is inteded for finding relevant information from financial chart images.

An example of a labelled financial chart:

Usage

To use this model you need to install the ultralytics library with Python. You can then download the weights of this repo and load them into the model. The image size during training was set to 1792, so be sure to use this too.

from ultralytics import YOLO
from huggingface_hub import hf_hub_download

# Load the pre-trained model
model = YOLO(hf_hub_download(
    repo_id="StephanAkkerman/chart-info-detector",
    filename="weights/best.pt",
    repo_type="model",
))

# Perform object detection on an image
results = model.predict(
    source=img_path,
    imgsz=1792,
    conf=0.25,
    iou=0.5,
    verbose=False,
)

r = results[0]

# Show the results 
r.show()