From 6b8ef53e2de692623836094319284991c196aa9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Mureau?= Date: Wed, 9 Sep 2026 15:16:52 +0200 Subject: [PATCH] =?UTF-8?q?Pr=C3=A9parer=20le=20repo=20P8=20autonome=20:?= =?UTF-8?q?=20CI=20syntaxe,=20fetch-data,=20URLs=20Forgejo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le dataset Cityscapes reste hors git (échantillon de démo conservé). --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .gitignore | 8 +++++++- README.MD | 15 +++++++++++++-- fetch-data.sh | 19 +++++++++++++++++++ 4 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100755 fetch-data.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0b7f1cc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +# CI légère — P8 Street Vision +# Même fichier lu par Forgejo Actions et GitHub Actions (OC-ADR-001). +# Le build Docker (SegFormer / TF) est Phase 6 : trop lourd pour le runner k3s (8 Gio). + +name: CI + +on: + push: + branches: [main] + workflow_dispatch: + +jobs: + syntax: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Python syntax (no model load) + run: | + set -eu + apt-get update + apt-get install -y --no-install-recommends python3 + python3 -m py_compile app/main.py app/streamlit_app.py utils/utils.py diff --git a/.gitignore b/.gitignore index 242c724..32d737e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,7 @@ -./mlruns* \ No newline at end of file +./mlruns* +**/.env +**/.env.* +!.env.example +**/__pycache__ +**/.pytest_cache +downloaded_artifacts/ diff --git a/README.MD b/README.MD index 5346549..dca04d5 100644 --- a/README.MD +++ b/README.MD @@ -1,5 +1,16 @@ # 🚗 Segmentation Multi-Classes pour Véhicules Autonomes +**Source de vérité** : [Forgejo](https://git.gregoiremureau.com/grgmro/oc-p08-street-vision) (auto-hébergé). + +```bash +git clone https://git.gregoiremureau.com/grgmro/oc-p08-street-vision.git +git clone https://git.gregoiremureau.com/grgmro/oc-p08-street-vision.git +``` + +Prod : https://api.gregoiremureau.com/ml/street-vision/ + +Dataset complet : `./fetch-data.sh` (Cityscapes **hors** git ; petit échantillon déjà dans `notebooks/content/data/`). + ## 📋 Description du Projet Ce projet développe un système de segmentation sémantique d'images de rue destiné aux véhicules autonomes. Il permet l'identification et la segmentation automatique de différents éléments urbains : véhicules, piétons, mobilier urbain, infrastructure routière, etc. @@ -110,8 +121,8 @@ Utilisation de la bibliothèque **[segmentation_models](https://github.com/qubve #### Configuration rapide ```bash # Cloner le projet -git clone https://github.com/GrgMdmn/OpenClassrooms_AI_Projects.git -cd OpenClassrooms_AI_Projects/Project_8 +git clone https://git.gregoiremureau.com/grgmro/oc-p08-street-vision.git +cd oc-p08-street-vision # Copier et adapter la configuration cp .env.example .env diff --git a/fetch-data.sh b/fetch-data.sh new file mode 100755 index 0000000..f73ab44 --- /dev/null +++ b/fetch-data.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# Datasets hors git (OC-ADR-003). Ce script n'en télécharge pas : il documente la source. +set -euo pipefail + +cat <<'EOF' +P8 — Cityscapes (segmentation sémantique urbaine) + +Source amont (inscription obligatoire) : + https://www.cityscapes-dataset.com/ + +Le repo contient uniquement un petit échantillon sous + notebooks/content/data/test_images_sample/ + notebooks/content/data/new_images_to_predict/ +pour la démo. Le dataset complet (~11 Go leftImg8bit + gtFine) ne doit +pas être versionné. + +Copie locale éventuelle : archive scolaire Nextcloud + Master_openclassroom_AI_Engineer/08 Traitez les images pour le système embarqué... +EOF