Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Replace person LoRA: download from ModelScope too

Bowen Xue3b787290a659
diff --git a/freevideo_engine/swap_lora.json b/freevideo_engine/swap_lora.json
index e8a9ca7..dee6c7c 100644
--- a/freevideo_engine/swap_lora.json
+++ b/freevideo_engine/swap_lora.json
@@ -2,6 +2,7 @@
"format": 1,
"repo": "Alissonerdx/Minimax-H3-ComfyUI",
"revision": "fd3dde7b3ec1ae4e09fafc46f000bedcc2db219b",
+ "modelscope": "https://www.modelscope.cn/models/BowenXue/FreeVideo-releases/resolve/master/models/swap-lora",
"license": "BFS Character Swap Community License 1.1",
"name": "alissonerdx-v1.1.safetensors",
"files": [
diff --git a/freevideo_engine/swap_lora.py b/freevideo_engine/swap_lora.py
index 748bfb3..4946574 100644
--- a/freevideo_engine/swap_lora.py
+++ b/freevideo_engine/swap_lora.py
@@ -6,8 +6,8 @@ the licence text travel with the weights, so the licence file is fetched first
and the weights land beside it under the name Replace person looks for.
The transfer is the image pack's: the same measured source order, the user's
-download source and proxy settings (Hugging Face or its mirror; a ModelScope
-choice falls back to them), resumable partials and sha256 checks. A copy of the
+download source and proxy settings (Hugging Face, its mirror, or our ModelScope
+copy of the same files), resumable partials and sha256 checks. A copy of the
LoRA that is already registered, at any depth of the LoRA folders, is used as it
is and never downloaded again.
"""
@@ -38,12 +38,13 @@ def present(names, spec=None):
def remote(spec, row):
- """One catalog file on the pinned Hugging Face revision, from the official host or its mirror."""
+ """One catalog file on the pinned Hugging Face revision (official host or its mirror) or our ModelScope copy."""
from .network import source_url
path = '/%s/resolve/%s/%s' % (spec['repo'], spec['revision'], row['file'])
+ sources = [dict(id=name, url=source_url('models', name) + path) for name in ('official', 'hf-mirror')]
+ sources.append(dict(id='modelscope', url=spec['modelscope'] + '/' + row['target']))
return dict(repo=spec['repo'], revision=spec['revision'], file=row['file'], family='image',
- sha256=row['sha256'], bytes=row['bytes'],
- sources=[dict(id=name, url=source_url('models', name) + path) for name in ('official', 'hf-mirror')])
+ sha256=row['sha256'], bytes=row['bytes'], sources=sources)
def _intact(path, row, check):