Skip to content

Instantly share code, notes, and snippets.

@sgeraldes
sgeraldes / Setup ComfyUI.md
Last active June 7, 2024 16:54
Setup ComfyUI / Automatic1111 properly

How to properly install ComfyUI / Stable Diffusion UI / Automatic1111 (including dependencies and requirements)

Certain ComfyUI or Automatic1111 extensions require different version of CUDA than the latest. You probably have 12.x installed, since it is the latest available. Unfortunately, the backwards compatibility is poor.

We'll be installing PyTorch for CUDA 11.8, independently, and we can change PyTorch versions without installing the full CUDA toolkit.

PreRequisites

  • Latest NVidia GPU Drivers installed
  • Python 3.10.11 (at the time of writing this, the best version) - Optional, we can do this later
@sgeraldes
sgeraldes / Check-Nahimic.ps1
Last active November 21, 2024 05:07
Disable Nahinic Service
# Check Nahimic service status
$nahimicService = Get-Service -Name "Nahimic service" -ErrorAction SilentlyContinue
if ($nahimicService) {
if ($nahimicService.Status -eq "Running") {
Write-Host "Nahimic service is currently running." -ForegroundColor Yellow
Write-Host "Advice: If you're experiencing issues related to Nahimic or high CPU/RAM usage, consider stopping and disabling the service."
}
else {
Write-Host "Nahimic service is present but currently not running." -ForegroundColor Green
@sgeraldes
sgeraldes / AIMX519 Arducam 16MP Autofocus Camera setup solution with Raspberry Pi 4 running Octorprint
Last active June 11, 2023 02:37
Setting up Octoprint on a Raspberry Pi 4 (4GB) with touchscreen and 16MP Autofocus Arducam Camera (IMX519)
Download the lastest nightly of octoprint or use Raspberry Imager to burn the lastest nightly with the new camera module.
Https://unofficialpi.org/Distros/Octopi/nightly/
Install it through an imager, just like normal octoprint image.
For your touchscreen (must be done first)
Sudo apt install xorg*