"and then `pip` installing the missing packages (that are incompatible with a `conda` install). \n",
"\n",
"First we install a specific set of packages for the `torch` framework that will work with even the newest GPUs (3090 RTX), and let this run for about 2 to 15 min (its slow to install):"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "55858395-7d66-49db-9623-7ab13c802897",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Defaulting to user installation because normal site-packages is not writeable\n",
"Looking in links: https://download.pytorch.org/whl/torch_stable.html\n"
"The we `pip` install whatever packages, that Yolov5 still needs (since they are still incompatible with a `conda` install):"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "16e7eab7-c847-4ff4-bc8c-ca34bb42df1b",
"metadata": {},
"outputs": [],
"source": [
"! pip install -r yolov5_swmal_requirements.txt"
]
},
{
"cell_type": "markdown",
"id": "c242e453-49c0-4455-aab8-72297ed4e98e",
"metadata": {},
"source": [
"You should now have the reqired setup for Yolov5, and I took care of installing specific GPU libraries needed for running Yolov5 on even the newest GPUs (3090). \n",
"\n",
"The user installed packages (found in you `~/.local/lib/python3.9/site-packages/` dir) now looks like:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "75a7580f-b3f2-4942-8234-053120ad313b",
"metadata": {},
"outputs": [],
"source": [
"! pip list --user\n",
"! echo ; echo \"DIR of local packages..\" ; echo\n",
"! ls ~/.local/lib/python3.9/site-packages/"
]
},
{
"cell_type": "markdown",
"id": "510d57eb-399c-4704-90f3-a4efd4bd3a3e",
"metadata": {},
"source": [
"An now you can test out a demo of Yolov5 -- one that predicts on the image `Figs/zidane.jpg`.\n",
"\n",
"If succefull an output prediction image will be placed in the `temp.jpg/` folder."
and then `pip` installing the missing packages (that are incompatible with a `conda` install).
First we install a specific set of packages for the `torch` framework that will work with even the newest GPUs (3090 RTX), and let this run for about 2 to 15 min (its slow to install):
You should now have the reqired setup for Yolov5, and I took care of installing specific GPU libraries needed for running Yolov5 on even the newest GPUs (3090).
The user installed packages (found in you `~/.local/lib/python3.9/site-packages/` dir) now looks like: