Instructions to use patdev/NitroGen-RTX2060-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use patdev/NitroGen-RTX2060-ONNX with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
| param([Parameter(Mandatory=$true)][string]$Process, [ValidateSet(4,8,16)][int]$Steps=4) | |
| $ErrorActionPreference="Stop" | |
| $Root=Split-Path -Parent $PSScriptRoot | |
| $Py=Join-Path $Root ".venv\Scripts\python.exe" | |
| $Server=Start-Process -FilePath $Py -ArgumentList @("scripts\serve_onnx.py","--steps",$Steps) -WorkingDirectory $Root -PassThru | |
| try { | |
| Start-Sleep -Seconds 3 | |
| & $Py ".vendor\NitroGen\scripts\play.py" --process $Process | |
| } finally { | |
| if (-not $Server.HasExited) { Stop-Process -Id $Server.Id -Force } | |
| } | |