Skip to content

Commit

Permalink
Merge branch 'main' of github.com:CERES-Sorbonne/Panoptic
Browse files Browse the repository at this point in the history
  • Loading branch information
godicked committed Jan 17, 2025
2 parents d0042a8 + 9afaf65 commit 0c68bd7
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 344 deletions.
Binary file removed install/panoptic_uv.exe
Binary file not shown.
Binary file modified install/windows/panoptic.exe
Binary file not shown.
Binary file added install/windows/panoptic.ico
Binary file not shown.
145 changes: 0 additions & 145 deletions install/windows/panoptic_launcher.py

This file was deleted.

56 changes: 0 additions & 56 deletions install/windows/panoptic_launcher_uv.bat

This file was deleted.

15 changes: 12 additions & 3 deletions install/windows/panoptic_launcher_uv.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def run_command(command, check=False, capture_output=False, shell=True):
# Vérifier si panoptic est installé, sinon l'installer
if run_command("uv pip show panoptic", capture_output=True).returncode != 0:
run_command("uv pip install panoptic")
with_cuda = input(
"Si vous possédez une carte graphique NVIDIA vous pouvez également installer une version optimisée mais plus lourde du programme: (O/N").strip().lower()
if with_cuda == 'o':
run_command("uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121")

# Vérifier si panoptic est obsolète
outdated = run_command("uv pip list --outdated", capture_output=True).stdout
Expand All @@ -49,7 +53,12 @@ def run_command(command, check=False, capture_output=False, shell=True):
else:
print("La dernière version de panoptic est déjà installée.")


run_command("uv run panoptic")

# Activer l'environnement virtuel et lancer panoptic
venv_activate = panoptic_dir / ".venv" / "Scripts" / "activate"
panoptic_exe = panoptic_dir / ".venv" / "Scripts" / "panoptic"
subprocess.run(f"call {venv_activate} & call {panoptic_exe}", shell=True)
# venv_activate = panoptic_dir / ".venv" / "Scripts" / "activate"
# panoptic_exe = panoptic_dir / ".venv" / "Scripts" / "panoptic"
# subprocess.run(f"call {venv_activate} & call {panoptic_exe}", shell=True)

# pyinstaller --onefile --noconsole --icon=panoptic.ico panoptic_launcher_uv.py
Binary file removed install/windows/panoptic_uv.exe
Binary file not shown.
74 changes: 0 additions & 74 deletions install/windows/start_panoptic_windows.cmd

This file was deleted.

66 changes: 0 additions & 66 deletions install/windows/start_panoptic_windows.ps1

This file was deleted.

0 comments on commit 0c68bd7

Please sign in to comment.