Replies: 4 comments 1 reply
|
Hi @Saheli-R, This is possible but a bit tricky -- do you mind telling us a bit more about the systems?
Cheers, Talmo |
|
Hi Talmo,
In my current computer SLEAP is running slowly and I want to process several videos, each 90 minutes long. So I am hoping the other computer will be much faster. Let me know if you need any other information, and thanks for your help! |
|
Hi @Saheli-R, Thanks for the post! Great question — offline installation is definitely doable. We've put together a pre-built offline installer for SLEAP on Windows with NVIDIA GPU support. There are two options depending on your setup: Option A: Use our pre-built pack (easiest)We've packaged everything you need into a single zip file — Python, SLEAP, PyTorch with CUDA, and all dependencies. Download: sleap-offline-pack-win-cu128.zip (~3.4 GB) On the offline computer1. Extract the zip Copy the zip to the offline computer via USB drive. Extract it to any folder you like — your Desktop, Documents, or anywhere else. Right-click the zip file and select "Extract All...", or open Command Prompt and run: tar -xf D:\sleap-offline-pack-win-cu128.zip -C %USERPROFILE%\Desktop(Replace You should now have a 2. Run the installer Open Command Prompt, navigate to wherever you extracted the zip, and run: cd %USERPROFILE%\Desktop
pack\unpack.cmdThis takes a few minutes. It will:
3. Activate and verify pack\.venv\Scripts\activate.bat
sleap doctorThis prints a diagnostic report showing your SLEAP version, GPU status, and installed packages. Look for 4. Launch SLEAP pack\.venv\Scripts\activate.bat
sleap labelYou'll need to run the PowerShell instructions (click to expand)If you prefer PowerShell over Command Prompt: # Extract (change the paths to wherever you like)
tar -xf D:\sleap-offline-pack-win-cu128.zip -C $HOME\Desktop
cd $HOME\Desktop
# Unpack
& pack\unpack.ps1
# Activate
& pack\.venv\Scripts\Activate.ps1
# Verify
sleap doctor
# Launch
sleap labelOption B: Build the pack yourself (if you need a different configuration)If you need a different setup (e.g., CPU-only, different CUDA version, Linux), you can build the pack on your connected computer. 1. Install uv (on the connected computer): powershell -ExecutionPolicy Bypass -c "irm https://astral.sh/uv/install.ps1 | iex"Close and reopen Command Prompt after installing. 2. Create a wrapper project: mkdir sleap-offline\sleap_offline
cd sleap-offline
type nul > sleap_offline\__init__.pyCreate a file called [project]
name = "sleap-offline"
version = "0.1.0"
requires-python = ">=3.13,<3.14"
dependencies = [
"sleap[nn]==1.6.1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
index-url = "https://download.pytorch.org/whl/cu128"
extra-index-url = ["https://pypi.org/simple"]
3. Lock dependencies and build the pack: uv lock --python 3.13
set PYTHONIOENCODING=utf-8
uvx uv-pack --verbose --pip-download "--extra-index-url https://download.pytorch.org/whl/cu128"PowerShell version (click to expand)uv lock --python 3.13
$env:PYTHONIOENCODING = "utf-8"
uvx uv-pack --verbose --pip-download "--extra-index-url https://download.pytorch.org/whl/cu128"This produces a Important notes
Let us know how it goes! ❤️ Talmo & Claude 🤖 Troubleshooting"tar: Cannot connect to C: resolve failed" during unpackThis happens if Git for Windows is installed — its mkdir pack\.python
C:\Windows\System32\tar.exe -C pack\.python -xzf pack\python\cpython-3.13.12+20260211-x86_64-pc-windows-msvc-install_only_stripped.tar.gzThen re-run
|
|
Thanks @talmo for your detailed instructions! :) I only got to try your workflow today, hence the delayed reply. I followed option A and tried installing using command prompt. python and sleap both got installed but running the command sleap doctor gives me OSerror - (winError 1114) dynamic link library initialization routine failed. Error loading c10.dll or one of its dependencies. I have checked that the c10.dll file does exist, but when i try loading/importing it using the file's location in my computer, it shows the same error again. I am stuck at this point. Could you perhaps help? Thank you, |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have successfully installed SLEAP in a computer, but now want to transfer the files from this computer to another desktop without internet connection, via external hard drives. I want to use this second computer for training the model. I already have anaconda working in this second computer, so I am thinking it should be possible to do such an offline installation. But could you please guide me with the exact steps I would need to follow?
Thanks!
All reactions