Skip to content

SUPRA-Tex: 3D Generation with Super-Aligned Texture

Keep logical model paths when reading models.json

chensjtue4dfbbde6a8d
diff --git a/docs/installation.md b/docs/installation.md
index 87b409a..2af53aa 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -92,6 +92,9 @@ The default Qwen-Image material backend uses torch attention and the
DiffSynth runtime bundled at `deployment/runtime/qwen`, selected automatically.
Its subprocess uses the active Python environment and the dependencies installed
above. Packages installed only with `pip --user` are excluded in the subprocess.
+The main inference process still imports user-site packages, so if
+`~/.local/lib/python3.10` holds conflicting versions, run with
+`PYTHONNOUSERSITE=1` to ignore them.
To use another compatible runtime, pass `--qwen-runtime /path/to/qwen-runtime`.
An optional `--qwen-deps /path/to/dependencies` adds an existing dependency
diff --git a/scripts/run_example.py b/scripts/run_example.py
index 1346b21..aa37dd9 100644
--- a/scripts/run_example.py
+++ b/scripts/run_example.py
@@ -49,7 +49,9 @@ def read_config(path: Path) -> dict:
if not isinstance(value, str) or not value:
raise ValueError(f"models.json requires a nonempty {key} path")
resolved = Path(value).expanduser()
- config[key] = str(resolved if resolved.is_absolute() else (path.parent / resolved).resolve())
+ # Normalize without following links: cache-backed files link to
+ # opaque blobs, and weight validation needs the logical file name.
+ config[key] = os.path.normpath(resolved if resolved.is_absolute() else path.parent / resolved)
return config