Skip to content

Commit ab54d04

Browse files
No public description
PiperOrigin-RevId: 738546695
1 parent c32198e commit ab54d04

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

official/projects/waste_identification_ml/pre_processing/split_coco_files.ipynb

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,23 @@
4242
"## **MUST DO** - Install and restart runtime"
4343
]
4444
},
45+
{
46+
"metadata": {
47+
"id": "H8pEG4JeS10V"
48+
},
49+
"cell_type": "code",
50+
"source": [
51+
"# Change the python version to 3.10\n",
52+
"!wget -O mini.sh https://repo.anaconda.com/miniconda/Miniconda3-py310_25.1.1-2-Linux-x86_64.sh\n",
53+
"!chmod +x mini.sh\n",
54+
"!bash ./mini.sh -b -f -p /usr/local\n",
55+
"!conda install -q -y jupyter\n",
56+
"!conda install -q -y google-colab -c conda-forge\n",
57+
"!python -m ipykernel install --name \"py310\" --user"
58+
],
59+
"outputs": [],
60+
"execution_count": null
61+
},
4562
{
4663
"cell_type": "code",
4764
"execution_count": null,
@@ -50,9 +67,10 @@
5067
},
5168
"outputs": [],
5269
"source": [
53-
"# install python object detection insights library to merge multiple COCO annotation files\n",
54-
"!pip install pyodi\n",
55-
"\n",
70+
"# Install pyodi from the source code.\n",
71+
"!git clone https://github.com/Gradiant/pyodi.git\n",
72+
"%cd pyodi/\n",
73+
"!pip install .\n",
5674
"# RESTART THE RUNTIME in order to use this library"
5775
]
5876
},

0 commit comments

Comments
 (0)