How to setup in Colab

#1
by chandeldivyam - opened

Sorry, I am new to huggingface and machine learning.

I want to run only the region detection model on a handwritten text image. How to setup that?

Is there any documentation? Thanks!

Swedish National Archives - Riksarkivet org

Hi πŸ‘‹

There is currently no integrations to use openmmlabs model such as the rtmdet model unfortunately.. However, we are currently working on a open soure package to cover this for this kinda model and others:
see here πŸ‘‰ htrflow_core

Their still no offical stable release for the package, but see here for an "example" on how to use the RTMdet model.

Also, you could atucally just use it directly by using the mmdet package provided by openmmlab

DetInferencer(model=model_config, weights=model_weights)

code block:

from mmdet.apis import DetInferencer
from mmdet.structures import DetDataSample

 model  = DetInferencer( model=model_config, weights=model_weights, model_args*)

results : DetDataSample = model(images, batch_size=batch_size, draw_pred=False, return_datasample=True, **kwargs)

Anyway, I hope this helped! πŸ€—

Stay tuned for htrflow_core release 🌟

Sign up or log in to comment