Date : 18/01/2026 16:30 Status : TERMINE Auteur : Claude
4 outils IA sur win11 (RTX 3070 Ti) necessitaient des corrections :
Probleme : torchmcubes necessite compilation CUDA/MSVC, non installe sur win11.
Solution : Patch isosurface.py pour utiliser PyMCubes (deja installe) comme fallback.
Fichier modifie : I:\TripoSR\tsr\models\isosurface.py
# Wrapper qui fonctionne avec torchmcubes ET PyMCubes
try:
from torchmcubes import marching_cubes as _mc
USE_TORCHMCUBES = True
except ImportError:
import mcubes
USE_TORCHMCUBES = False
def marching_cubes_wrapper(volume, iso_value):
if USE_TORCHMCUBES:
return _mc(volume, iso_value)
else:
vol_np = volume.cpu().numpy().astype(np.float32)
verts, faces = mcubes.marching_cubes(vol_np, iso_value)
return torch.from_numpy(verts.astype(np.float32)), torch.from_numpy(faces.astype(np.int64))
Test : TripoSR demarre correctement, API Gradio accessible sur :7870
Fichier : /stock_8to/33800-stack/projects/ai-orchestrator/app/main.py
| Executor | Mode | Parametres principaux |
|---|---|---|
execute_triposr_job() |
Full API | input_image, remove_background, mc_resolution, output_format |
execute_wan21_job() |
Full API + passthrough | prompt, resolution, steps, seed |
execute_sadtalker_job() |
Full API + passthrough | source_image, driven_audio, preprocess, enhancer |
execute_applio_job() |
Full API + passthrough | input_audio, model_name, pitch, f0_method |
Probleme : IP passee de .12 a .101 (DHCP)
Solution : Restauration IP statique via netplan
sudo netplan apply # Restaure 192.168.1.12
Code : Ajout variables d'environnement pour Redis/PostgreSQL hosts
REDIS_HOST = os.environ.get("REDIS_HOST", "192.168.1.12")
POSTGRES_HOST = os.environ.get("POSTGRES_HOST", "192.168.1.12")
| Outil | Demarrage | API Gradio | Status |
|---|---|---|---|
| TripoSR | OK | /preprocess, /generate | Fonctionnel |
| Wan2.1 | Non teste | - | A tester |
| SadTalker | Non teste | - | A tester |
| Applio | Non teste | - | A tester |
feat: Add Full API mode for TripoSR, Wan2.1, SadTalker, Applio
fix: Use env vars for Redis/PostgreSQL IPs
fix: Restore default IP to .12 (prod-portainer)
# Lister outils
curl http://192.168.1.12:5501/api/tools
# Demarrer outil
curl -X POST http://192.168.1.12:5501/api/tools/{tool_id}/start
# Soumettre job (exemple TripoSR)
curl -X POST http://192.168.1.12:5501/api/jobs \
-H "Content-Type: application/json" \
-d '{
"tool": "triposr",
"params": {
"input_image": "base64_or_path",
"remove_background": true,
"mc_resolution": 256,
"output_format": "glb"
}
}'
| Fichier | Action |
|---|---|
| I:\TripoSR\tsr\models\isosurface.py | Patch PyMCubes fallback |
| ai-orchestrator/app/main.py | 4 executors Full API |