Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

98 linhas
3.8 KiB

  1. {
  2. "cells": [
  3. {
  4. "cell_type": "markdown",
  5. "metadata": {},
  6. "source": [
  7. "# Téléchargement des modèles"
  8. ]
  9. },
  10. {
  11. "cell_type": "code",
  12. "execution_count": 1,
  13. "metadata": {},
  14. "outputs": [
  15. {
  16. "name": "stdout",
  17. "output_type": "stream",
  18. "text": [
  19. "Requirement already satisfied: pandas in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (2.2.2)\n",
  20. "Requirement already satisfied: requests in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (2.32.3)\n",
  21. "Requirement already satisfied: numpy>=1.23.2 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from pandas) (1.26.4)\n",
  22. "Requirement already satisfied: python-dateutil>=2.8.2 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from pandas) (2.9.0.post0)\n",
  23. "Requirement already satisfied: pytz>=2020.1 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from pandas) (2024.1)\n",
  24. "Requirement already satisfied: tzdata>=2022.7 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from pandas) (2024.1)\n",
  25. "Requirement already satisfied: charset-normalizer<4,>=2 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests) (3.3.2)\n",
  26. "Requirement already satisfied: idna<4,>=2.5 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests) (3.7)\n",
  27. "Requirement already satisfied: urllib3<3,>=1.21.1 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests) (2.2.2)\n",
  28. "Requirement already satisfied: certifi>=2017.4.17 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests) (2024.7.4)\n",
  29. "Requirement already satisfied: six>=1.5 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from python-dateutil>=2.8.2->pandas) (1.16.0)\n",
  30. "\n",
  31. "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m24.1.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m24.2\u001b[0m\n",
  32. "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n"
  33. ]
  34. }
  35. ],
  36. "source": [
  37. "!pip install pandas requests"
  38. ]
  39. },
  40. {
  41. "cell_type": "code",
  42. "execution_count": 2,
  43. "metadata": {},
  44. "outputs": [],
  45. "source": [
  46. "import os\n",
  47. "import shutil\n",
  48. "import pandas as pd\n",
  49. "import requests"
  50. ]
  51. },
  52. {
  53. "cell_type": "code",
  54. "execution_count": 3,
  55. "metadata": {},
  56. "outputs": [
  57. {
  58. "name": "stdout",
  59. "output_type": "stream",
  60. "text": [
  61. "Dossier existant 'artifacts' supprimé.\n",
  62. "Nouveau dossier 'artifacts' créé.\n",
  63. "Le fichier a été téléchargé avec succès : artifacts/yvan_jarvispore.h5\n",
  64. "Le fichier a été téléchargé avec succès : artifacts/florent_resnet18.pth\n",
  65. "Le fichier a été téléchargé avec succès : artifacts/heuzef_efficientnetb1_010.keras\n",
  66. "Le fichier a été téléchargé avec succès : artifacts/vik_resnet50.h5\n",
  67. "Le fichier a été téléchargé avec succès : artifacts/heuzef_lenet_001.keras\n"
  68. ]
  69. }
  70. ],
  71. "source": [
  72. "!python3 ./download_models.py"
  73. ]
  74. }
  75. ],
  76. "metadata": {
  77. "kernelspec": {
  78. "display_name": "jarvis_env",
  79. "language": "python",
  80. "name": "python3"
  81. },
  82. "language_info": {
  83. "codemirror_mode": {
  84. "name": "ipython",
  85. "version": 3
  86. },
  87. "file_extension": ".py",
  88. "mimetype": "text/x-python",
  89. "name": "python",
  90. "nbconvert_exporter": "python",
  91. "pygments_lexer": "ipython3",
  92. "version": "3.11.9"
  93. }
  94. },
  95. "nbformat": 4,
  96. "nbformat_minor": 2
  97. }