From 926512bbaacb3c8550dfa9ede4eeec1ad4de2eeb Mon Sep 17 00:00:00 2001 From: Raj Aryan <73771884+rajaryan18@users.noreply.github.com> Date: Thu, 4 Jan 2024 14:02:23 +0530 Subject: [PATCH 1/9] added about.md for zero shot object detection task --- .../tasks/src/tasks/zero-shot-object-detection/about.md | 7 +++++++ .../tasks/src/tasks/zero-shot-object-detection/data.ts | 0 2 files changed, 7 insertions(+) create mode 100644 packages/tasks/src/tasks/zero-shot-object-detection/about.md create mode 100644 packages/tasks/src/tasks/zero-shot-object-detection/data.ts diff --git a/packages/tasks/src/tasks/zero-shot-object-detection/about.md b/packages/tasks/src/tasks/zero-shot-object-detection/about.md new file mode 100644 index 0000000000..dbb3dfd343 --- /dev/null +++ b/packages/tasks/src/tasks/zero-shot-object-detection/about.md @@ -0,0 +1,7 @@ +## About the Task + +Zero-Shot Object detection is an object detection task where no visual training data is available for certain target objects. it aims to identify objects with classes that the model has not seen before. + +## Use Cases + +Zero-Shot Object Detection can be used in cases where little to no training data is available for certin object classes. \ No newline at end of file diff --git a/packages/tasks/src/tasks/zero-shot-object-detection/data.ts b/packages/tasks/src/tasks/zero-shot-object-detection/data.ts new file mode 100644 index 0000000000..e69de29bb2 From 8e4f1d9b39554a1d65359362112aff59c415e2c5 Mon Sep 17 00:00:00 2001 From: Raj Aryan <73771884+rajaryan18@users.noreply.github.com> Date: Thu, 4 Jan 2024 14:19:08 +0530 Subject: [PATCH 2/9] About section for mask-generation, text-to-3d, zero-shot-object-detection --- packages/tasks/src/tasks/mask-generation/about.md | 7 +++++++ packages/tasks/src/tasks/mask-generation/data.ts | 0 packages/tasks/src/tasks/text-to-3d/about.md | 7 +++++++ packages/tasks/src/tasks/text-to-3d/data.ts | 0 4 files changed, 14 insertions(+) create mode 100644 packages/tasks/src/tasks/mask-generation/about.md create mode 100644 packages/tasks/src/tasks/mask-generation/data.ts create mode 100644 packages/tasks/src/tasks/text-to-3d/about.md create mode 100644 packages/tasks/src/tasks/text-to-3d/data.ts diff --git a/packages/tasks/src/tasks/mask-generation/about.md b/packages/tasks/src/tasks/mask-generation/about.md new file mode 100644 index 0000000000..7ccbcdd2b8 --- /dev/null +++ b/packages/tasks/src/tasks/mask-generation/about.md @@ -0,0 +1,7 @@ +## About the Task + +Mask Generation task involves generating masks/segments for objects in a given image. It could be zero shot or based on training data. + +## Use Cases + +Mask Generation has promising use cases in Medical Imaging, Autonomous Vehicles, Robotics, etc. \ No newline at end of file diff --git a/packages/tasks/src/tasks/mask-generation/data.ts b/packages/tasks/src/tasks/mask-generation/data.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/tasks/src/tasks/text-to-3d/about.md b/packages/tasks/src/tasks/text-to-3d/about.md new file mode 100644 index 0000000000..6ed2da61cf --- /dev/null +++ b/packages/tasks/src/tasks/text-to-3d/about.md @@ -0,0 +1,7 @@ +## About the Task + +Text to 3D is a Generative task of generating a 3d image from a given text prompt. It is similar to generating a 2d image but involves an extended complexity of depth perception. + +## Use Cases + +Text to 3d has various creative and experimental use cases like setting up virtual experiments and simulations. \ No newline at end of file diff --git a/packages/tasks/src/tasks/text-to-3d/data.ts b/packages/tasks/src/tasks/text-to-3d/data.ts new file mode 100644 index 0000000000..e69de29bb2 From 7aaac2ddfcc0e2018154f73a4ed06472d4ff035f Mon Sep 17 00:00:00 2001 From: Raj Aryan <73771884+rajaryan18@users.noreply.github.com> Date: Mon, 8 Jan 2024 19:46:34 +0530 Subject: [PATCH 3/9] modifications --- .vscode/settings.json | 2 +- .../tasks/src/tasks/mask-generation/about.md | 12 ++++-- .../tasks/src/tasks/mask-generation/data.ts | 39 +++++++++++++++++++ packages/tasks/src/tasks/text-to-3d/about.md | 8 ++-- packages/tasks/src/tasks/text-to-3d/data.ts | 30 ++++++++++++++ .../tasks/zero-shot-object-detection/about.md | 7 ---- .../tasks/zero-shot-object-detection/data.ts | 0 7 files changed, 82 insertions(+), 16 deletions(-) delete mode 100644 packages/tasks/src/tasks/zero-shot-object-detection/about.md delete mode 100644 packages/tasks/src/tasks/zero-shot-object-detection/data.ts diff --git a/.vscode/settings.json b/.vscode/settings.json index 09d96d362c..5e40510b2f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,7 +2,7 @@ "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll": true + "source.fixAll": "explicit" }, "[svelte]": { "editor.defaultFormatter": "esbenp.prettier-vscode" diff --git a/packages/tasks/src/tasks/mask-generation/about.md b/packages/tasks/src/tasks/mask-generation/about.md index 7ccbcdd2b8..979e240f3e 100644 --- a/packages/tasks/src/tasks/mask-generation/about.md +++ b/packages/tasks/src/tasks/mask-generation/about.md @@ -1,7 +1,11 @@ -## About the Task +## Use Cases -Mask Generation task involves generating masks/segments for objects in a given image. It could be zero shot or based on training data. +### Medical Imaging -## Use Cases +Mask Generation is used in medical imaging in aiding in the segmentation and analysis of specific regions. + +### Autonomous Vehicles + +Mask Generation is used to create segments and masks for obstacles and other objects in view. -Mask Generation has promising use cases in Medical Imaging, Autonomous Vehicles, Robotics, etc. \ No newline at end of file +This page was written by [Raj Aryan](https://huggingface.co/thatrajaryan) \ No newline at end of file diff --git a/packages/tasks/src/tasks/mask-generation/data.ts b/packages/tasks/src/tasks/mask-generation/data.ts index e69de29bb2..866539cb26 100644 --- a/packages/tasks/src/tasks/mask-generation/data.ts +++ b/packages/tasks/src/tasks/mask-generation/data.ts @@ -0,0 +1,39 @@ +import type { TaskDataCustom } from ".."; + +const taskData: TaskDataCustom = { + datasets: [ + { + description: "Widely used benchmark dataset for multiple Vision tasks.", + id: "merve/coco2017", + }, + { + description: "Medical Imaging dataset of the Human Brain for segmentation and mask generating tasks", + id: "rocky93/BraTS_segmentation" + } + ], + demo: { + inputs: [ + + ], + outputs: [ + + ], + }, + metrics: [ + { + description: + "IoU is used to measure the overlap between predicted mask and the ground truth mask.", + id: "Intersection over Union (IoU)", + } + ], + models: [ + ], + spaces: [ + + ], + summary:"Mask generation task involves generating masks for meaningful segments in a given image. It could be zero-shot or based on training data.", + widgetModels: [], + youtubeId: "", +}; + +export default taskData; \ No newline at end of file diff --git a/packages/tasks/src/tasks/text-to-3d/about.md b/packages/tasks/src/tasks/text-to-3d/about.md index 6ed2da61cf..e53b589133 100644 --- a/packages/tasks/src/tasks/text-to-3d/about.md +++ b/packages/tasks/src/tasks/text-to-3d/about.md @@ -1,7 +1,7 @@ -## About the Task +## Use Cases -Text to 3D is a Generative task of generating a 3d image from a given text prompt. It is similar to generating a 2d image but involves an extended complexity of depth perception. +### Prototyping -## Use Cases +Text to 3D can help reduce the time and cost of prototyping and making modifications to them. -Text to 3d has various creative and experimental use cases like setting up virtual experiments and simulations. \ No newline at end of file +This page was written by [Raj Aryan](https://huggingface.co/thatrajaryan) \ No newline at end of file diff --git a/packages/tasks/src/tasks/text-to-3d/data.ts b/packages/tasks/src/tasks/text-to-3d/data.ts index e69de29bb2..3d2da4a3ae 100644 --- a/packages/tasks/src/tasks/text-to-3d/data.ts +++ b/packages/tasks/src/tasks/text-to-3d/data.ts @@ -0,0 +1,30 @@ +import type { TaskDataCustom } from ".."; + +const taskData: TaskDataCustom = { + datasets: [ + { + description: "3D-Future is a dataset designed to generate 3D images from textual descriptions.", + id: "3D-Future", + } + ], + demo: { + inputs: [ + + ], + outputs: [ + + ], + }, + metrics: [ + ], + models: [ + ], + spaces: [ + + ], + summary:"Text-to-3D is to generate a 3D image from a text prompt. It is similar to generating a 2D image but involves an extended complexity of depth perception.", + widgetModels: [], + youtubeId: "", +}; + +export default taskData; \ No newline at end of file diff --git a/packages/tasks/src/tasks/zero-shot-object-detection/about.md b/packages/tasks/src/tasks/zero-shot-object-detection/about.md deleted file mode 100644 index dbb3dfd343..0000000000 --- a/packages/tasks/src/tasks/zero-shot-object-detection/about.md +++ /dev/null @@ -1,7 +0,0 @@ -## About the Task - -Zero-Shot Object detection is an object detection task where no visual training data is available for certain target objects. it aims to identify objects with classes that the model has not seen before. - -## Use Cases - -Zero-Shot Object Detection can be used in cases where little to no training data is available for certin object classes. \ No newline at end of file diff --git a/packages/tasks/src/tasks/zero-shot-object-detection/data.ts b/packages/tasks/src/tasks/zero-shot-object-detection/data.ts deleted file mode 100644 index e69de29bb2..0000000000 From 976a0f8d5d641e98931929fc96ef09e37650d204 Mon Sep 17 00:00:00 2001 From: Raj Aryan <73771884+rajaryan18@users.noreply.github.com> Date: Wed, 10 Jan 2024 23:36:40 +0530 Subject: [PATCH 4/9] suggested changes --- .vscode/settings.json | 4 +-- .../tasks/src/tasks/mask-generation/about.md | 6 ++--- .../tasks/src/tasks/mask-generation/data.ts | 15 +++-------- packages/tasks/src/tasks/text-to-3d/about.md | 4 +-- packages/tasks/src/tasks/text-to-3d/data.ts | 27 +++++-------------- 5 files changed, 18 insertions(+), 38 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 5e40510b2f..740a1bef8f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,9 +2,9 @@ "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll": "explicit" + "source.fixAll": true }, "[svelte]": { "editor.defaultFormatter": "esbenp.prettier-vscode" } -} +} \ No newline at end of file diff --git a/packages/tasks/src/tasks/mask-generation/about.md b/packages/tasks/src/tasks/mask-generation/about.md index 979e240f3e..bdf84a53bb 100644 --- a/packages/tasks/src/tasks/mask-generation/about.md +++ b/packages/tasks/src/tasks/mask-generation/about.md @@ -2,10 +2,10 @@ ### Medical Imaging -Mask Generation is used in medical imaging in aiding in the segmentation and analysis of specific regions. +Mask generation models are used in medical imaging to aid in segmenting and analyzing specific regions. ### Autonomous Vehicles -Mask Generation is used to create segments and masks for obstacles and other objects in view. +Mask generation models are used to create segments and masks for obstacles and other objects in view. -This page was written by [Raj Aryan](https://huggingface.co/thatrajaryan) \ No newline at end of file +This page was made possible thanks to the efforts of [Raj Aryan](https://huggingface.co/thatrajaryan). \ No newline at end of file diff --git a/packages/tasks/src/tasks/mask-generation/data.ts b/packages/tasks/src/tasks/mask-generation/data.ts index 866539cb26..600fabef99 100644 --- a/packages/tasks/src/tasks/mask-generation/data.ts +++ b/packages/tasks/src/tasks/mask-generation/data.ts @@ -12,12 +12,8 @@ const taskData: TaskDataCustom = { } ], demo: { - inputs: [ - - ], - outputs: [ - - ], + inputs: [], + outputs: [], }, metrics: [ { @@ -26,11 +22,8 @@ const taskData: TaskDataCustom = { id: "Intersection over Union (IoU)", } ], - models: [ - ], - spaces: [ - - ], + models: [], + spaces: [], summary:"Mask generation task involves generating masks for meaningful segments in a given image. It could be zero-shot or based on training data.", widgetModels: [], youtubeId: "", diff --git a/packages/tasks/src/tasks/text-to-3d/about.md b/packages/tasks/src/tasks/text-to-3d/about.md index e53b589133..21e9e4a52d 100644 --- a/packages/tasks/src/tasks/text-to-3d/about.md +++ b/packages/tasks/src/tasks/text-to-3d/about.md @@ -2,6 +2,6 @@ ### Prototyping -Text to 3D can help reduce the time and cost of prototyping and making modifications to them. +Text-to-3D models can help reduce the time and cost of prototyping and making modifications to them. -This page was written by [Raj Aryan](https://huggingface.co/thatrajaryan) \ No newline at end of file +This page was made possible thanks to the efforts of [Raj Aryan](https://huggingface.co/thatrajaryan). \ No newline at end of file diff --git a/packages/tasks/src/tasks/text-to-3d/data.ts b/packages/tasks/src/tasks/text-to-3d/data.ts index 3d2da4a3ae..866476cccf 100644 --- a/packages/tasks/src/tasks/text-to-3d/data.ts +++ b/packages/tasks/src/tasks/text-to-3d/data.ts @@ -1,28 +1,15 @@ import type { TaskDataCustom } from ".."; const taskData: TaskDataCustom = { - datasets: [ - { - description: "3D-Future is a dataset designed to generate 3D images from textual descriptions.", - id: "3D-Future", - } - ], + datasets: [], demo: { - inputs: [ - - ], - outputs: [ - - ], + inputs: [], + outputs: [], }, - metrics: [ - ], - models: [ - ], - spaces: [ - - ], - summary:"Text-to-3D is to generate a 3D image from a text prompt. It is similar to generating a 2D image but involves an extended complexity of depth perception.", + metrics: [], + models: [], + spaces: [], + summary:"Text-to-3D is the task of generating a 3D image from a text prompt. It is similar to generating a 2D image with an extension of depth perception.", widgetModels: [], youtubeId: "", }; From ee5d58f91ebeb71505934cfba8005f6b8b4745cc Mon Sep 17 00:00:00 2001 From: Raj Aryan <73771884+rajaryan18@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:07:37 +0530 Subject: [PATCH 5/9] reverted .vscode/settings.json --- .vscode/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 740a1bef8f..09d96d362c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,4 +7,4 @@ "[svelte]": { "editor.defaultFormatter": "esbenp.prettier-vscode" } -} \ No newline at end of file +} From 0e8a9c185e2300fc0a0b149977dc81e31920205a Mon Sep 17 00:00:00 2001 From: Pedro Cuenca Date: Fri, 15 Nov 2024 13:09:34 +0100 Subject: [PATCH 6/9] Apply suggestions from code review --- packages/tasks/src/tasks/mask-generation/data.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/tasks/src/tasks/mask-generation/data.ts b/packages/tasks/src/tasks/mask-generation/data.ts index a88db02931..3bd61394d5 100644 --- a/packages/tasks/src/tasks/mask-generation/data.ts +++ b/packages/tasks/src/tasks/mask-generation/data.ts @@ -6,10 +6,10 @@ const taskData: TaskDataCustom = { description: "Widely used benchmark dataset for multiple Vision tasks.", id: "merve/coco2017", }, - { - description: "Medical Imaging dataset of the Human Brain for segmentation and mask generating tasks", - id: "rocky93/BraTS_segmentation" - } + { + description: "Medical Imaging dataset of the Human Brain for segmentation and mask generating tasks", + id: "rocky93/BraTS_segmentation" + } ], demo: { inputs: [ @@ -27,8 +27,7 @@ const taskData: TaskDataCustom = { }, metrics: [ { - description: - "IoU is used to measure the overlap between predicted mask and the ground truth mask.", + description: "IoU is used to measure the overlap between predicted mask and the ground truth mask.", id: "Intersection over Union (IoU)", } ], @@ -67,4 +66,4 @@ const taskData: TaskDataCustom = { youtubeId: "", }; -export default taskData; \ No newline at end of file +export default taskData; From af34de0c45617169e9631d67a25b10829cf645fb Mon Sep 17 00:00:00 2001 From: Pedro Cuenca Date: Fri, 15 Nov 2024 13:14:47 +0100 Subject: [PATCH 7/9] Apply suggestions from code review --- packages/tasks/src/tasks/mask-generation/data.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/tasks/src/tasks/mask-generation/data.ts b/packages/tasks/src/tasks/mask-generation/data.ts index 3bd61394d5..5d4a8ab192 100644 --- a/packages/tasks/src/tasks/mask-generation/data.ts +++ b/packages/tasks/src/tasks/mask-generation/data.ts @@ -6,10 +6,10 @@ const taskData: TaskDataCustom = { description: "Widely used benchmark dataset for multiple Vision tasks.", id: "merve/coco2017", }, - { - description: "Medical Imaging dataset of the Human Brain for segmentation and mask generating tasks", - id: "rocky93/BraTS_segmentation" - } + { + description: "Medical Imaging dataset of the Human Brain for segmentation and mask generating tasks", + id: "rocky93/BraTS_segmentation" + }, ], demo: { inputs: [ @@ -29,7 +29,7 @@ const taskData: TaskDataCustom = { { description: "IoU is used to measure the overlap between predicted mask and the ground truth mask.", id: "Intersection over Union (IoU)", - } + }, ], models: [ { From ad5568a70294872ee5f9184d6ef8da86a8e352dd Mon Sep 17 00:00:00 2001 From: Pedro Cuenca Date: Fri, 15 Nov 2024 13:18:52 +0100 Subject: [PATCH 8/9] Update packages/tasks/src/tasks/mask-generation/data.ts --- packages/tasks/src/tasks/mask-generation/data.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/tasks/src/tasks/mask-generation/data.ts b/packages/tasks/src/tasks/mask-generation/data.ts index 5d4a8ab192..cc18380dbe 100644 --- a/packages/tasks/src/tasks/mask-generation/data.ts +++ b/packages/tasks/src/tasks/mask-generation/data.ts @@ -7,8 +7,8 @@ const taskData: TaskDataCustom = { id: "merve/coco2017", }, { - description: "Medical Imaging dataset of the Human Brain for segmentation and mask generating tasks", - id: "rocky93/BraTS_segmentation" + description: "Medical Imaging dataset of the Human Brain for segmentation and mask generating tasks", + id: "rocky93/BraTS_segmentation", }, ], demo: { From 37d2187d8d5a44b24c76c07e8c67229e222925d0 Mon Sep 17 00:00:00 2001 From: coyotte508 Date: Fri, 15 Nov 2024 13:48:53 +0100 Subject: [PATCH 9/9] =?UTF-8?q?=F0=9F=99=88=20Ignore=20tshy=20for=20pretti?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/tasks/.prettierignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/tasks/.prettierignore b/packages/tasks/.prettierignore index cac0c69496..09c2c88825 100644 --- a/packages/tasks/.prettierignore +++ b/packages/tasks/.prettierignore @@ -1,4 +1,5 @@ pnpm-lock.yaml # In order to avoid code samples to have tabs, they don't display well on npm README.md -dist \ No newline at end of file +dist +.tshy \ No newline at end of file