docs+tests: mock-user home paths (/home/main), no machine-specific usernames

The parity harnesses already honored COMFYUI_HOME; their defaults, and the docs'
provenance references, now use the mock home. No behavior change: export
COMFYUI_HOME (or pass argv) to point them at a real checkout.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
gearwave00001andClaude committed 2026-10-22 17:37:14 -05:00
1 parent 2477456b36
commit dab82de105
6 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -36,7 +36,7 @@ import math
import os
import sys
sys.path.insert(0, os.environ.get("COMFYUI_HOME", "/home/dustin/AI/ComfyUI"))
sys.path.insert(0, os.environ.get("COMFYUI_HOME", "/home/main/AI/ComfyUI"))
# Force ComfyUI's import-time device probe onto the CPU branch WITHOUT opening a ROCm context
# (the running TP2 server owns both GPUs). comfy.cli_args exposes a module-level `args`;
@@ -57,7 +57,7 @@ ENC_MAX_SAMPLES = 500000
SLOT_ROWS_A = AUDIO_CH * (ENC_MAX_SAMPLES // AUDIO_HOP) # 1250
MAXA = SLOT_ROWS_A // AUDIO_CH # per-channel row stride within a slot (625)
VAE_SAFETENSORS = os.path.join(
os.environ.get("COMFYUI_HOME", "/home/dustin/AI/ComfyUI"),
os.environ.get("COMFYUI_HOME", "/home/main/AI/ComfyUI"),
"models/vae/minimax_h3_audio_vae_fp32.safetensors")
+2 -2
View File
@@ -37,7 +37,7 @@ Layout it relies on (from arch/minimaxh3/minimaxh3.cpp + rad_vae_geom.h, keep in
enc_geom (25 i32) : g0=(clipT,H,W) -> gd[1]=H, gd[2]=W ; gd[18]=short_last ; gd[22]=n_clips ; gd[23]=T_pad.
Run under the ComfyUI torch venv (only for numpy/torch/safetensors — no comfy import):
COMFYUI_HOME=/home/dustin/AI/ComfyUI /home/dustin/AI/ComfyUI/.venv/bin/python \
COMFYUI_HOME=/home/main/AI/ComfyUI /home/main/AI/ComfyUI/.venv/bin/python \
ref_venc_parity.py --evc evc.f32 --encpx encpx_1_1.f32 --encg encg_1_1.f32 --slot 1
# or validate the harness itself with no device at all:
ref_venc_parity.py --selftest
@@ -54,7 +54,7 @@ import torch
import torch.nn as nn
import torch.nn.functional as F
COMFYUI = os.environ.get("COMFYUI_HOME", "/home/dustin/AI/ComfyUI")
COMFYUI = os.environ.get("COMFYUI_HOME", "/home/main/AI/ComfyUI")
VAE_PY = os.path.join(COMFYUI, "comfy/ldm/minimax/vae.py")
VAE_SAFETENSORS = os.path.join(COMFYUI, "models/vae/minimax_h3_video_vae_fp16.safetensors")