SUPRA-Tex: 3D Generation with Super-Aligned Texture
docs: explain reusing an existing Hugging Face cache
chensjtu58aec191c6b6
diff --git a/README.md b/README.mdindex 7402fc2..db93581 100644--- a/README.md+++ b/README.md@@ -104,6 +104,12 @@ hf auth loginpython scripts/prepare_models.py```+By default the models are downloaded into `ckpts/ready`, which stays+self-contained. If your Hugging Face cache already holds some of them, add+`--cache-dir ~/.cache/huggingface/hub` to reuse it instead of downloading again.+Point it at the hub cache (`HF_HUB_CACHE`), not `HF_HOME`; `ckpts/ready` then+links to that cache, so keep it.+Add `--with-rmbg` to prepare [RMBG-2](https://huggingface.co/briaai/RMBG-2.0)for opaque RGB inputs; images with a foreground alpha channel do not need it.RMBG-2 also requires access approval. To avoid it, use the publicdiff --git a/README_zh-CN.md b/README_zh-CN.mdindex 35b238f..226dd67 100644--- a/README_zh-CN.md+++ b/README_zh-CN.md@@ -93,6 +93,10 @@ hf auth loginpython scripts/prepare_models.py```+默认情况下,模型会下载到 `ckpts/ready` 中,这个目录完全自包含。如果 Hugging Face 缓存里已经有其中一部分模型,+可以加上 `--cache-dir ~/.cache/huggingface/hub` 直接复用,不必重新下载。注意要指向 hub 缓存目录+(`HF_HUB_CACHE`),而不是 `HF_HOME`;这样 `ckpts/ready` 会链接到该缓存,因此不要删除它。+如果输入是不带 alpha 通道的 RGB 图像,需要加上 `--with-rmbg` 来准备抠图模型[RMBG-2](https://huggingface.co/briaai/RMBG-2.0);带前景 alpha 的图像不需要。RMBG-2 同样需要申请访问。不想申请的话,可以改用公开的 [BiRefNet](https://huggingface.co/ZhengPeng7/BiRefNet):RMBG-2 正是基于它构建的,diff --git a/docs/quickstart.md b/docs/quickstart.mdindex 3f8c2af..18bcd5b 100644--- a/docs/quickstart.md+++ b/docs/quickstart.md@@ -98,8 +98,11 @@ separate Hub repositories. External local overrides are available as`--rmbg`; run `python scripts/prepare_models.py --help` for their accepted layouts.Local overrides avoid downloading those models but remain external filedependencies. `--cache-dir` uses a shared Hugging Face cache and links the-prepared files to it; keep that cache available. Without an explicit cache,-downloads go into the prepared model directory. Use `--local-files-only` for+prepared files to it; keep that cache available. It reuses models already in+that cache, so pass the hub cache directory (`HF_HUB_CACHE`, by default+`~/.cache/huggingface/hub`), not `HF_HOME`. Without an explicit cache,+downloads go into the prepared model directory and do not reuse an existing+Hugging Face cache. Use `--local-files-only` forlocal files and cached downloads; NAF weights must already be prepared orsupplied through `--naf-weights`.