Skip to content

Commit

Permalink
Update recommended models for 2 tasks (#883)
Browse files Browse the repository at this point in the history
Some minor updates for the recommended models of the "image
segmentation" and "object detection" tasks:

* "facebook/detr-resnet-50-panoptic" is pretty outdated and also not
that good
* "microsoft/beit-base-patch16-224-pt22k-ft22k" was linked in the object
detection page, but it's an image classification model

cc @merveenoyan

---------

Co-authored-by: Merve Noyan <[email protected]>
  • Loading branch information
NielsRogge and merveenoyan authored Oct 16, 2024
1 parent 4a0c8ff commit f9ae194
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/tasks/src/tasks/image-segmentation/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_TOKEN);
await inference.imageSegmentation({
data: await (await fetch("https://picsum.photos/300/300")).blob(),
model: "facebook/detr-resnet-50-panoptic",
model: "facebook/mask2former-swin-base-coco-panoptic",
});
```

Expand Down
13 changes: 7 additions & 6 deletions packages/tasks/src/tasks/image-segmentation/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,22 @@ const taskData: TaskDataCustom = {
models: [
{
// TO DO: write description
description: "Solid panoptic segmentation model trained on the COCO 2017 benchmark dataset.",
id: "facebook/detr-resnet-50-panoptic",
description:
"Solid semantic segmentation model trained on ADE20k.",
id: "openmmlab/upernet-convnext-small",
},
{
description: "Background removal model.",
id: "briaai/RMBG-1.4",
},
{
description: "Semantic segmentation model trained on ADE20k benchmark dataset with 512x512 resolution.",
id: "nvidia/segformer-b0-finetuned-ade-512-512",
},
{
description: "A multipurpose image segmentation model for high resolution images.",
id: "ZhengPeng7/BiRefNet",
},
{
description: "Semantic segmentation model trained on ADE20k dataset.",
id: "nvidia/segformer-b0-finetuned-ade-512-512",
},
{
description: "Panoptic segmentation model trained COCO (common objects) dataset.",
id: "facebook/mask2former-swin-large-coco-panoptic",
Expand Down
9 changes: 5 additions & 4 deletions packages/tasks/src/tasks/object-detection/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,16 @@ const taskData: TaskDataCustom = {
],
models: [
{
description: "Solid object detection model trained on the benchmark dataset COCO 2017.",
description: "Solid object detection model pre-trained on the COCO 2017 dataset.",
id: "facebook/detr-resnet-50",
},
{
description: "Strong object detection model trained on ImageNet-21k dataset.",
id: "microsoft/beit-base-patch16-224-pt22k-ft22k",
description: "Real-time and accurate object detection model.",
id: "jameslahm/yolov10x",
},
{
description: "Fast and accurate object detection model trained on COCO dataset.",
description:
"Fast and accurate object detection model trained on COCO and Object365 datasets.",
id: "PekingU/rtdetr_r18vd_coco_o365",
},
],
Expand Down

0 comments on commit f9ae194

Please sign in to comment.