Translate the whole project to English and fix outdated comments and help

Comments, docstrings, logs, CLI help, map UI, legends, PDF sheet, scripts,
compose files and AGENTS.md are now English. Data keys stay unchanged
(relief_oriente, densite_sol, visualisations/, API JSON keys, link params).
Wrong comments and help defaults found along the way are corrected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Antoine
2026-09-27 23:16:45 +02:00
parent cc1c22d2b8
commit fb892ea9f2
52 changed files with 4356 additions and 4323 deletions

View File

@ -1,48 +1,48 @@
#!/usr/bin/env bash
# Lancement local de la carte LiDAR en une commande (GPU facultatif).
# Start the LiDAR map locally with a single command (GPU optional).
#
# ./start.sh construit l'image et démarre la carte (port 8973)
# ./start.sh stop arrête la carte
# ./start.sh logs suit le journal du serveur
# ./start.sh process [opts] traitement ponctuel des dalles de input/
# (options passées au pipeline, ex. --file NOM)
# ./start.sh build the image and start the map (port 8973)
# ./start.sh stop stop the map
# ./start.sh logs follow the server log
# ./start.sh process [opts] one-off processing of the tiles in input/
# (options passed to the pipeline, e.g. --file NAME)
#
# Sans GPU NVIDIA utilisable par Docker, docker-compose.cpu.yml est ajouté
# automatiquement (le pipeline tourne alors sur le CPU, plus lentement).
# Without an NVIDIA GPU usable by Docker, docker-compose.cpu.yml is added
# automatically (the pipeline then runs on the CPU, more slowly).
set -euo pipefail
cd "$(dirname "$0")"
# input/ et output/ créés au nom de l'utilisateur : créés par Docker, ils
# appartiendraient à root et le conteneur (uid 1000) ne pourrait pas y écrire.
# Create input/ and output/ as the current user: if Docker created them they
# would belong to root and the container (uid 1000) could not write to them.
mkdir -p input output
for d in input output; do
if [ ! -w "$d" ]; then
echo "Erreur : $d/ n'est pas accessible en écriture (propriétaire : $(stat -c %U "$d"))." >&2
echo "Corrigez avec : sudo chown -R $(id -u):$(id -g) $d" >&2
echo "Error: $d/ is not writable (owner: $(stat -c %U "$d"))." >&2
echo "Fix it with: sudo chown -R $(id -u):$(id -g) $d" >&2
exit 1
fi
done
if [ "$(id -u)" != "1000" ]; then
echo "Attention : les conteneurs tournent sous l'uid 1000, vous êtes $(id -u) :" >&2
echo "input/ et output/ doivent rester accessibles en écriture à l'uid 1000." >&2
echo "Warning: the containers run as uid 1000, you are $(id -u):" >&2
echo "input/ and output/ must stay writable by uid 1000." >&2
fi
# GPU : nvidia-smi présent ET Docker capable de le donner à un conteneur.
# GPU: nvidia-smi present AND Docker able to hand it to a container.
compose=(docker compose -f docker-compose.yml)
if command -v nvidia-smi >/dev/null 2>&1 && nvidia-smi >/dev/null 2>&1 \
&& docker run --rm --gpus all --entrypoint true busybox >/dev/null 2>&1; then
echo "GPU NVIDIA détecté : traitement accéléré."
echo "NVIDIA GPU detected: accelerated processing."
else
echo "Pas de GPU utilisable : traitement sur le CPU (plus lent)."
echo "No usable GPU: processing on the CPU (slower)."
compose+=(-f docker-compose.cpu.yml)
fi
case "${1:-up}" in
up)
"${compose[@]}" up -d --build serve
echo "Carte : http://localhost:8973/"
echo "Journal : ./start.sh logs — arrêt : ./start.sh stop"
echo "Map: http://localhost:8973/"
echo "Log: ./start.sh logs - stop: ./start.sh stop"
;;
stop)
"${compose[@]}" down
@ -53,8 +53,8 @@ case "${1:-up}" in
process)
shift
if [ $# -gt 0 ]; then
# Des options remplacent la commande par défaut du service : la
# reprendre en entier (entrée, sortie, 0,2 m, tous les GPU).
# Any option replaces the service's default command: repeat it in
# full (input, output, 0.2 m, all GPUs).
"${compose[@]}" run --rm --build process \
python3 -m lidar_pipeline /data/input -o /data/output -r 0.2 -g all "$@"
else