LemonNeko commited on
Commit
066884d
·
unverified ·
1 Parent(s): 7256a1f

fix: notebook

Browse files
Files changed (1) hide show
  1. notebook.ipynb +8 -1
notebook.ipynb CHANGED
@@ -22,7 +22,14 @@
22
  "metadata": {},
23
  "outputs": [],
24
  "source": [
25
- "%pip install -q ultralytics==8.3.0 huggingface_hub==0.34.4 onnxruntime==1.22.0 matplotlib==3.9.2 pillow==10.4.0\n"
 
 
 
 
 
 
 
26
  ]
27
  },
28
  {
 
22
  "metadata": {},
23
  "outputs": [],
24
  "source": [
25
+ "%pip install -q \"numpy<2\" ultralytics==8.3.0 huggingface_hub==0.34.4 onnxruntime==1.22.0 matplotlib==3.9.2 pillow==10.4.0\n",
26
+ "\n",
27
+ "import os\n",
28
+ "import sys\n",
29
+ "\n",
30
+ "if \"google.colab\" in sys.modules:\n",
31
+ " print(\"Restarting runtime to finalize dependency versions...\")\n",
32
+ " os.kill(os.getpid(), 9)\n"
33
  ]
34
  },
35
  {