Skip to content

chore(installer): overhaul install scripts — portable paths, TRT verification, pin alignment#10

Open
forkni wants to merge 1 commit intoSDTD_031_devfrom
pr9/installer-overhaul
Open

chore(installer): overhaul install scripts — portable paths, TRT verification, pin alignment#10
forkni wants to merge 1 commit intoSDTD_031_devfrom
pr9/installer-overhaul

Conversation

@forkni
Copy link
Copy Markdown
Collaborator

@forkni forkni commented Apr 7, 2026

Summary

  • Portable batch scripts: Replaced all hardcoded absolute paths with %~dp0 in Install_StreamDiffusion.bat, Install_TensorRT.bat, and Start_StreamDiffusion.bat. Added prerequisite checks (Python 3.11, Git, optional cl.exe warning).
  • Version pin alignment: Synchronized all version pins across setup.py, sd_installer/installer.py, sd_installer/tensorrt.py, src/streamdiffusion/tools/install-tensorrt.py, and StreamDiffusionTD/install_tensorrt.py to match verified installed state.
  • TensorRT verification: Added TENSORRT_CHECKS to verifier.py and wired into cli.py so install-tensorrt automatically verifies TRT, cuDNN, and polygraphy after install.
  • New set_env.bat: Runtime GPU tuning vars (PYTORCH_CUDA_ALLOC_CONF, CUDA_MODULE_LOADING=LAZY, L2 persist settings).
  • Installer fixes: Pinned previously-unpinned python-osc to 1.10.2, fixed timm install syntax bug, fixed protobuf phase7 downgrade below setup.py minimum.

Version pin changes

Package Old Pin New Pin
Pillow >=12.1.1 >=12.2.0
onnxruntime-gpu 1.24.3 1.24.4
polygraphy 0.49.24 0.49.26
colored 2.3.1 2.3.2
pywin32 306 311
peft 0.17.1 0.18.1
protobuf 4.25.3 4.25.8
timm >=1.0.24 (fuzzy) 1.0.26 (concrete)
python-osc (unpinned) 1.10.2

Files changed (9 files, installer-only)

  • Install_StreamDiffusion.bat — portable paths + prereq checks
  • Install_TensorRT.bat — portable paths + venv check
  • Start_StreamDiffusion.bat — portable paths + set_env.bat integration
  • set_env.bat — new: runtime GPU tuning environment variables
  • setup.py — 4 version pin updates
  • StreamDiffusion-installer — submodule: MANUAL_PINS, phase5 syntax, verifier TRT checks
  • StreamDiffusionTD/install_tensorrt.py — centralized TENSORRT_PINS dict, aligned versions
  • src/streamdiffusion/tools/install-tensorrt.py — polygraphy + pywin32 pin updates
  • src/streamdiffusion/pip_utils.py — get_cuda_major helper for install-tensorrt.py

Test plan

  • Run py -3.11 -m sd_installer --base-folder "..." diagnose — all 14 checks pass
  • Run Install_StreamDiffusion.bat from a clean directory — portable paths resolve correctly
  • Run Install_TensorRT.bat — TRT install + verification step succeeds
  • Verify import tensorrt; import polygraphy; import onnxruntime all succeed

🤖 Generated with Claude Code

…fication, pin alignment

- Replace hardcoded paths with %~dp0 in all batch scripts
- Add prerequisite checks (Python 3.11, Git, optional cl.exe)
- Align version pins across setup.py, installer.py, and all 3 TensorRT installers
- Pin previously-unpinned python-osc to 1.10.2, fix timm install syntax
- Fix protobuf phase7 downgrade below setup.py minimum (4.25.3→4.25.8)
- Add TensorRT verification step (tensorrt, cuDNN, polygraphy checks)
- Add set_env.bat for runtime GPU tuning (CUDA_MODULE_LOADING, L2 persist)
- Update: Pillow>=12.2.0, onnxruntime-gpu==1.24.4, polygraphy==0.49.26,
  colored==2.3.2, pywin32==311, peft==0.18.1, timm==1.0.26

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants