Run this model with HF Jobs
Run ankitcodes/clear-document-detection on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ankitcodes/clear-document-detection. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ankitcodes/clear-document-detection on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ankitcodes/clear-document-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ankitcodes/clear-document-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="ankitcodes/clear-document-detection")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("ankitcodes/clear-document-detection") model = AutoModelForObjectDetection.from_pretrained("ankitcodes/clear-document-detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload 3 files
Browse filesFiles changed (3)
- config.jsonAdded+61
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+45
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "_name_or_path": "TahaDouaji/detr-doc-table-detection", "activation_dropout": 0.0, "activation_function": "relu", "architectures": [ "DetrForObjectDetection" ], "attention_dropout": 0.0, "auxiliary_loss": false, "backbone": "resnet50", "backbone_config": null, "backbone_kwargs": { "in_chans": 3, "out_indices": [ 1, 2, 3, 4 ] }, "bbox_cost": 5, "bbox_loss_coefficient": 5, "class_cost": 1, "d_model": 256, "decoder_attention_heads": 8, "decoder_ffn_dim": 2048, "decoder_layerdrop": 0.0, "decoder_layers": 6, "dice_loss_coefficient": 1, "dilation": false, "dropout": 0.1, "encoder_attention_heads": 8, "encoder_ffn_dim": 2048, "encoder_layerdrop": 0.0, "encoder_layers": 6, "eos_coefficient": 0.1, "giou_cost": 2, "giou_loss_coefficient": 2, "id2label": { "0": "table", "1": "table" }, "init_std": 0.02, "init_xavier_std": 1.0, "is_encoder_decoder": true, "label2id": { "table": 0 }, "mask_loss_coefficient": 1, "max_position_embeddings": 1024, "model_type": "detr", "num_channels": 3, "num_hidden_layers": 6, "num_queries": 100, "position_embedding_type": "sine", "scale_embedding": false, "torch_dtype": "float32", "transformers_version": "4.41.2", "use_pretrained_backbone": true, "use_timm_backbone": true}123version https://git-lfs.github.com/spec/v1oid sha256:62f95dc8833c4f1dbbef26f7c530eb78d0e0d6f7c6a6664c0347fd2d218c6ad3size 166495852123456789101112131415161718192021222324252627282930313233343536373839404142434445{ "_valid_processor_keys": [ "images", "annotations", "return_segmentation_masks", "masks_path", "do_resize", "size", "resample", "do_rescale", "rescale_factor", "do_normalize", "do_convert_annotations", "image_mean", "image_std", "do_pad", "format", "return_tensors", "data_format", "input_data_format" ], "do_convert_annotations": true, "do_normalize": true, "do_pad": true, "do_rescale": true, "do_resize": true, "format": "coco_detection", "image_mean": [ 0.485, 0.456, 0.406 ], "image_processor_type": "DetrImageProcessor", "image_std": [ 0.229, 0.224, 0.225 ], "resample": 2, "rescale_factor": 0.00392156862745098, "size": { "longest_edge": 1333, "shortest_edge": 800 }}config.jsonAdded+61
model.safetensorsAdded+3
preprocessor_config.jsonAdded+45