Skip to content

Commit

Permalink
🚧 wip
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousDolphin committed Feb 14, 2025
1 parent 6fab0db commit 9f8fe1f
Showing 1 changed file with 71 additions and 5 deletions.
76 changes: 71 additions & 5 deletions notebooks/dataset.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,71 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Download Datasets from external sources"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%uv pip install dataset-tools roboflow"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%uv pip install setuptools"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Download from Dataset-Ninja (supervisely)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import dataset_tools as dtools\n",
"\n",
"dtools.download(dataset=\"dacl10k\", dst_dir=\"./datasets/dataset-ninja/\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Download from Roboflow Universe"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"\n",
"from roboflow import Roboflow\n",
"\n",
"rf = Roboflow(api_key=os.getenv(\"ROBOFLOW_API_KEY\"))\n",
"project = rf.workspace(\"roboflow-58fyf\").project(\"rock-paper-scissors-sxsw\")\n",
"version = project.version(14)\n",
"dataset = version.download(\"coco\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -22,14 +88,14 @@
"metadata": {},
"outputs": [],
"source": [
"%uv pip install -e ..[cpu]"
"%uv pip install -e ..[cpu] "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Cloud Dataset Management\n",
"# Focoos Cloud Dataset Management\n",
"\n",
"This section covers the steps to see the datasets available on the FocoosAI platform and the creation of user datasets.\n"
]
Expand Down Expand Up @@ -158,9 +224,9 @@
"focoos = Focoos(host_url=LOCAL_API_URL)\n",
"\n",
"ds = focoos.add_remote_dataset(\n",
" name=\"slot-car-3\", description=\"Slot Car Tracker\", layout=DatasetLayout.ROBOFLOW_COCO, task=FocoosTask.DETECTION\n",
" name=\"aeroscapes\", description=\"AeroScapes\", layout=DatasetLayout.SUPERVISELY, task=FocoosTask.SEMSEG\n",
")\n",
"ds_spec = ds.upload_data(\"./.data/carrera_go.zip\")"
"ds_spec = ds.upload_data(\"./datasets/dataset-ninja/aeroscapes1.zip\")"
]
},
{
Expand Down Expand Up @@ -219,7 +285,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 9f8fe1f

Please sign in to comment.