Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
85446a8
FreeVideo commands always run the installed program, whichever folder…
KBRASK Nov 24, 2026
fa8971f
Number fields: no browser-drawn up/down arrows on FreeVideo's own sur…
KBRASK Nov 24, 2026
31d37b0
Every FreeVideo popup and dialog uses the same thin scrollbar as the …
KBRASK Nov 24, 2026
01ddbba
Editor: a source dragged from the library carries its picture; the ta…
KBRASK Nov 24, 2026
80bd544
Reverse prompt UI: a key in the picture page and the create panel wri…
KBRASK Nov 24, 2026
61c6323
Web pages read the interface language one way, through web/i18n.js
KBRASK Nov 24, 2026
0152e41
Failure cards and notice bars: the explanation wraps so its last line…
KBRASK Nov 24, 2026
8e87db9
Graphics adapters on Windows are read from the Display class key itse…
KBRASK Nov 24, 2026
084032b
Old-version cleanup: a package file linked to an installed model is l…
KBRASK Nov 24, 2026
bae3d4f
Text encoder: when a CUDA out-of-memory error leaves the encoder work…
KBRASK Nov 24, 2026
8c1328a
Launcher: Check files button on the image model card
KBRASK Nov 24, 2026
6d843c8
Launcher: a setup check that Windows refuses to start now says the Wi…
KBRASK Nov 24, 2026
09800e7
Image reports record the memory taken while the worker runs: the lowe…
KBRASK Nov 24, 2026
4963e6c
Image model repair replaces a damaged file the video install shares (…
KBRASK Nov 24, 2026
551b477
Setup: a downloaded source folder that Windows still holds open is pu…
KBRASK Nov 24, 2026
c5c7968
Studio draft keeps the LoRA list and the reference pictures and bring…
KBRASK Nov 24, 2026
dded410
Scene and prop cards keep the image LoRAs their chosen picture was ma…
KBRASK Nov 24, 2026
40b327a
Prompt enhancement: a failed rewrite's feedback readings also carry t…
KBRASK Nov 24, 2026
d4f11b6
Failure cards for insufficient memory and every other failure categor…
KBRASK Nov 24, 2026
669168d
Windows: the shared machine lease is shared, so generations on two GP…
KBRASK Nov 24, 2026
a2479e7
Long video: pressing redo again after its reply was lost or late foll…
KBRASK Nov 24, 2026
5a11c11
A LoRA made for another build of the model (a linear layer at another…
KBRASK Nov 24, 2026
e07e083
Saved prompt encodings survive updates that do not change the encoding
KBRASK Nov 24, 2026
2017cf6
Mac: a saved first, middle and last keyframe set is accepted as first…
KBRASK Nov 24, 2026
30ef845
Reverse prompt UI: at phone width the key in the options row is the s…
KBRASK Nov 24, 2026
bcb3afb
Name the failed output check in prompt enhancement errors and count c…
KBRASK Nov 24, 2026
0ad3d40
Launcher: a ComfyUI output path that is not the launcher's own no lon…
KBRASK Nov 24, 2026
f610ec1
Image model download: a background install whose lease is held by a s…
KBRASK Nov 24, 2026
ac0027c
Pictures over a LAN address: reference pictures and edits upload from…
KBRASK Nov 24, 2026
29c8aed
Release 0.6.11: update notes
KBRASK Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion freevideo
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export PYTHONPATH="$FREEVIDEO_SOURCE_DIR${PYTHONPATH:+:$PYTHONPATH}"
source "$FREEVIDEO_SOURCE_DIR/scripts/bootstrap_linux.sh"
freevideo_bootstrap_linux cli "$@"
(( FREEVIDEO_BOOTSTRAP_DONE == 0 )) || exit 0
exec "$FREEVIDEO_BOOTSTRAP_PYTHON" -B -X utf8 -m freevideo_engine.managed "${FREEVIDEO_BOOTSTRAP_ARGS[@]}"
exec "$FREEVIDEO_BOOTSTRAP_PYTHON" -B -X utf8 "$FREEVIDEO_SOURCE_DIR/freevideo_engine/installed_entry.py" freevideo_engine.managed "${FREEVIDEO_BOOTSTRAP_ARGS[@]}"
2 changes: 1 addition & 1 deletion freevideo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ try {
foreach ($name in @('UV_HTTP_TIMEOUT', 'UV_HTTP_RETRIES')) {
[Environment]::SetEnvironmentVariable($name, $freevideoSavedEnvironment[$name], 'Process')
}
& $freevideoPython @freevideoPythonPrefix -B -X utf8 -m freevideo_engine.managed @freevideoArguments
& $freevideoPython @freevideoPythonPrefix -B -X utf8 (Join-Path $PSScriptRoot 'freevideo_engine\installed_entry.py') freevideo_engine.managed @freevideoArguments
$freevideoExit = $LASTEXITCODE
if ($freevideoExit -gt 127 -or $freevideoExit -lt 0) {
# A crash or a blocked start prints nothing, so the exit code was all a report held.
Expand Down
21 changes: 18 additions & 3 deletions freevideo_engine/agent/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
EDITABLE = ('name', 'description', 'images', 'voice')
MAX_IMAGES = 6
MAX_CANDIDATES = 6
MAX_LORAS = 8
MAX_RECEIPTS = 64
# The FreeVideo input files that cards the user deleted named, by private_store token, with the time noted.
RELEASED = 'released.json'
Expand Down Expand Up @@ -140,6 +141,11 @@ def row_view(card):
generate_error=errors.with_reason(card.get('generate_error')))


def _loras(rows):
"""The image LoRAs a card keeps for its own picture maker: file, strength and whether it is on, in the order given."""
return [dict(name=row['name'], strength=float(row.get('strength', 1.)), enabled=row.get('enabled', True)) for row in rows or []]


def _plain(item):
"""The input file an image item names unchanged (a returned card file), else None."""
if isinstance(item, str):
Expand Down Expand Up @@ -200,6 +206,10 @@ def _check(record, stem):
if not isinstance(row['label'], str) or not isinstance(row['media']['file'], str):
raise ValueError('Invalid picture')
unknown_labels |= row['label'] not in LABELS
loras = card.setdefault('loras', [])
if not isinstance(loras, list) or len(loras) > MAX_LORAS or not all(
isinstance(row, dict) and isinstance(row.get('name'), str) for row in loras):
raise ValueError('Invalid LoRAs')
if card['voice'] is not None:
if not isinstance(card['voice']['clip']['file'], str) or not (
isinstance(card['voice']['media'].get('file'), str) or isinstance(card['voice']['media'].get('library'), str)):
Expand Down Expand Up @@ -485,6 +495,7 @@ def create(self, value, *, by='builtin', ref=None, made_for=None, local=True, cl
entry = self._picture_at(identity, row['media'], by, index)
images.append(dict(entry, label=row.get('label', 'other')))
voice = self._voice(identity, value['voice']) if value.get('voice') else None
loras = _loras(value.get('loras'))
with self.changed:
digest, replay = self._receipt('cast:create', value, ref, client)
if replay is not None:
Expand All @@ -493,7 +504,7 @@ def create(self, value, *, by='builtin', ref=None, made_for=None, local=True, cl
supplied = dict(name=True, description=value.get('description') is not None,
images=bool(images), voice=voice is not None)
card = dict(id=identity, kind=value['kind'], name=value['name'], description=value.get('description'),
images=images, voice=voice, revision=1, created_at=stamp, updated_at=stamp, by=by,
images=images, voice=voice, loras=loras, revision=1, created_at=stamp, updated_at=stamp, by=by,
origin=by, made_for=made_for, used_by=[],
edited_by_user={k: by == 'user' and supplied[k] for k in EDITABLE},
candidates=[], generating=None, generate_error=None, generated=None, _user_images=0)
Expand Down Expand Up @@ -583,7 +594,8 @@ def update(self, identity, value, *, by='builtin', ref=None, revision=None, loca
card.update(resolved, revision=card['revision'] + 1, updated_at=self._now(), by=by)
if by == 'user':
for key in resolved:
card['edited_by_user'][key] = True
if key in card['edited_by_user']:
card['edited_by_user'][key] = True
result = view(card)
self._remember(record, ref, digest, result, client)
if resolved or ref is not None:
Expand Down Expand Up @@ -634,9 +646,12 @@ def _changes(self, card, value, by):
and voice.get('end', current['end']) == current['end']
if not same:
changes['voice'] = voice
if 'loras' in value and _loras(value['loras']) != card.get('loras', []):
changes['loras'] = _loras(value['loras'])
if by != 'user':
for key in changes:
if key != 'images' and card['edited_by_user'][key]:
# The LoRAs are the card's own record of how its picture was made: the card dialog sets them, nobody guards them.
if key not in ('images', 'loras') and card['edited_by_user'][key]:
raise self._by_user(card, key)
return changes

Expand Down
4 changes: 2 additions & 2 deletions freevideo_engine/agent/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

Linux x86_64 uses ./freevideo; Windows uses freevideo.cmd. On macOS and other
Unix platforms, use the installed interpreter and source folder:
env FREEVIDEO_AGENT=1 PYTHONPATH=/path/to/FreeVideo/engine-source \
/path/to/installed/python -X utf8 -m freevideo_engine.agent.cli --root /path/to/FreeVideo status
env FREEVIDEO_AGENT=1 PYTHONPATH=/path/to/FreeVideo/engine-source /path/to/installed/python -X utf8 \
/path/to/FreeVideo/engine-source/freevideo_engine/installed_entry.py freevideo_engine.agent.cli --root /path/to/FreeVideo status
"""
import argparse
import json
Expand Down
146 changes: 145 additions & 1 deletion freevideo_engine/agent/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def safe_details(value):
FAILURE_REASONS_ZH = {
**LORA_MESSAGE_ZH,
'too_large': '这条消息太长,请缩短或分成两条发送',
'lan_unavailable': '局域网设置需要启动器安装记录',
'lan_unavailable': '手机连接需要用启动器安装的 FreeVideo',
'capabilities_computing': '正在计算这台电脑的生成能力,稍后再试',
'out_of_memory': '生成时显存或内存不足',
'insufficient_memory': '可用显存或内存不足,无法生成这段内容',
Expand Down Expand Up @@ -565,6 +565,78 @@ def safe_details(value):
'invalid_seed': '清空种子或改用较小的整数后再试',
'too_many_images': '减少参考图后再试',
'output_unwritable': '确认输入目录下的 freevideo-image 文件夹存在、可写且没有同名文件后再试',
'invalid_lora_strength': '把强度调到 -2 到 2 之间后再试',
'lan_unavailable': '先用启动器安装 FreeVideo,再打开“手机连接”',
'turn_abandoned': '需要时重新提交',
'insufficient_memory': '关闭其他占用显卡的程序,或缩小尺寸、缩短时长后再试',
'no_memory': '关闭其他占用显卡的程序,或缩小图片尺寸后再试',
'ram_space': '关闭其他占用内存的程序后再试',
'model_missing': '在启动器或设置中安装所需模型后再试',
'pack_missing': '在启动器或设置中安装图片模型后再试',
'model_unavailable': '换一个图片模型后再试',
'not_ready': '在启动器或设置中完成安装或修复后再试',
'cancelled': '需要时重新提交',
'stopped_by_user': '需要时重新提交',
'interrupted': '再试一次',
'worker_exit': '再试一次;再次出现时,请点击“提交问题”',
'closed': '在启动器里重新启动 FreeVideo 后再试',
'image_unavailable': '稍等片刻后再试;仍不行时,在启动器里重新启动 FreeVideo',
'vlm_unavailable': '稍等片刻后再试;仍不行时,在启动器里重新启动 FreeVideo',
'vlm_failed': '换一张更清晰的图片,或再试一次',
'vlm_invalid_json': '再试一次',
'context_length': '缩短描述或减少参考图后再试',
'dependency_failed': '先处理前面失败的任务,再重新提交',
'lost': '重新提交一次',
'unknown_job': '刷新页面后查看任务列表,必要时重新提交',
'not_found': '刷新页面后确认它还在,再重试',
'source_missing': '找回或重新生成上一段视频后再接续',
'chain_missing': '改为从完整视频重新接续',
'not_resumable': '重新提交一个新任务',
'chain_unavailable': '在启动器里重新启动 FreeVideo 后再试',
'continuation_unavailable': '换一种生成方式,或重新生成整段视频',
'join_failed': '检查磁盘空间后重新导出成片',
'invalid_output': '检查磁盘空间后再试',
'storage_unavailable': '检查磁盘空间和文件夹写入权限后再试',
'disk_full': '清理磁盘空间后再试',
'submit_interrupted': '查看任务列表确认是否已开始,没有再重新提交',
'timeout': '再试一次;再次出现时,请缩短时长或降低尺寸',
'invalid_media': '换一个能正常播放的文件后再试',
'clip_unreadable': '重新生成这个角色参考视频后再试',
'invalid_request': '把设置改到可用范围内后再试',
'invalid_drama': '检查短剧设置后再试',
'reshoot_limit': '改为选用已有的镜头,或新建一个镜头',
'production_limit': '继续前,先完成或删除不需要的任务',
'export_failed': '检查磁盘空间后重新导出',
'chain_too_long': '缩短接续的内容,或减少段数后再试',
'chain_short_parts': '把短于 10 秒的段合并或重新生成后再试',
'chain_rejected': '更换尺寸或时长后再试',
'local_only': '在运行 FreeVideo 的电脑上操作',
'page_required': '在浏览器中打开 FreeVideo 页面后再操作',
'conflict': '等当前任务结束,或刷新页面后再试',
'invalid_edit': '检查编辑设置后再试',
'invalid_screenplay': '按提示修改剧本后再试',
'unsupported_media': '换一张图片后再试',
'unknown_shot': '刷新页面后选择现有的镜头',
'unknown_take': '刷新页面后选择这个镜头里现有的一条',
'take_not_ready': '重新生成这一条,或选另一条',
'chosen_by_user': '要更换时,请在页面上手动改选',
'nothing_to_cancel': '无需操作,需要时再提交新任务',
'not_allowed': '在页面上手动停止或继续这部短剧',
'already_ended': '需要时新建一部短剧',
'needs_confirmation': '确认后再执行这项操作',
'declined_by_user': '需要时重新提出这项操作',
'stale_revision': '刷新页面查看最新内容后再改',
'changed_by_user': '按手动修改后的内容继续,或刷新页面后重新操作',
'card_in_use': '等短剧结束,或先停止它后再改这张卡片',
'project_changed': '刷新页面查看最新内容后再改',
'image_changed': '刷新页面查看最新内容后再改',
'speech_language': '换一段受支持语言的声音,或手动填写字幕',
'listen_failed': '再试一次,或手动填写字幕',
'music_failed': '再试一次',
'stems_failed': '再试一次',
'sound_failed': '再试一次',
'voice_failed': '再试一次',
'small_memory': '在内存 16 GB 及以上的 Mac 上使用图片生成',
}
FAILURE_NEXT_EN = {
'generation_failed': 'If it happens again, use "Report a problem"',
Expand Down Expand Up @@ -597,6 +669,78 @@ def safe_details(value):
'invalid_seed': 'Clear the seed or use a smaller whole number, then try again',
'too_many_images': 'Remove some reference pictures, then try again',
'output_unwritable': 'Check that the freevideo-image folder in the input directory exists, is writable and has no file of the same name, then try again',
'invalid_lora_strength': 'Set the strength between -2 and 2, then try again',
'lan_unavailable': 'Install FreeVideo with the launcher first, then turn on Phone access',
'turn_abandoned': 'Submit it again when needed',
'insufficient_memory': 'Close other programs that use the graphics card, or use a smaller size or a shorter length, then try again',
'no_memory': 'Close other programs that use the graphics card, or use a smaller picture size, then try again',
'ram_space': 'Close other programs that use memory, then try again',
'model_missing': 'Install the required model in the launcher or in Settings, then try again',
'pack_missing': 'Install the picture model in the launcher or in Settings, then try again',
'model_unavailable': 'Choose another picture model, then try again',
'not_ready': 'Finish the installation or repair in the launcher or in Settings, then try again',
'cancelled': 'Submit it again when needed',
'stopped_by_user': 'Submit it again when needed',
'interrupted': 'Try again',
'worker_exit': 'Try again; if it happens again, use "Report a problem"',
'closed': 'Restart FreeVideo from the launcher, then try again',
'image_unavailable': 'Wait a moment and try again; if it still fails, restart FreeVideo from the launcher',
'vlm_unavailable': 'Wait a moment and try again; if it still fails, restart FreeVideo from the launcher',
'vlm_failed': 'Try a clearer picture, or try again',
'vlm_invalid_json': 'Try again',
'context_length': 'Shorten the description or use fewer reference pictures, then try again',
'dependency_failed': 'Fix the earlier task that failed, then submit this one again',
'lost': 'Submit it again',
'unknown_job': 'Reload the page and check the task list; submit again if needed',
'not_found': 'Reload the page and make sure it still exists, then try again',
'source_missing': 'Restore or regenerate the previous video, then continue it',
'chain_missing': 'Continue again from the finished video instead',
'not_resumable': 'Submit a new task',
'chain_unavailable': 'Restart FreeVideo from the launcher, then try again',
'continuation_unavailable': 'Choose another way of generating, or generate the whole video again',
'join_failed': 'Check the free disk space, then export the film again',
'invalid_output': 'Check the free disk space, then try again',
'storage_unavailable': 'Check the free disk space and the write access to the folder, then try again',
'disk_full': 'Free up disk space, then try again',
'submit_interrupted': 'Check the task list to see whether it started; submit again if it did not',
'timeout': 'Try again; if it happens again, use a shorter length or a smaller size',
'invalid_media': 'Use a file that plays normally, then try again',
'clip_unreadable': 'Generate the character reference video again, then try again',
'invalid_request': 'Change the settings to a supported range, then try again',
'invalid_drama': 'Check the drama settings, then try again',
'reshoot_limit': 'Choose one of the existing takes, or add a new shot',
'production_limit': 'Finish or delete tasks you no longer need before continuing',
'export_failed': 'Check the free disk space, then export again',
'chain_too_long': 'Shorten what you continue, or use fewer parts, then try again',
'chain_short_parts': 'Merge or regenerate the parts shorter than 10 seconds, then try again',
'chain_rejected': 'Change the size or the length, then try again',
'local_only': 'Do this on the computer that runs FreeVideo',
'page_required': 'Open the FreeVideo page in the browser, then do this there',
'conflict': 'Wait for the current task to end, or reload the page, then try again',
'invalid_edit': 'Check the edit settings, then try again',
'invalid_screenplay': 'Change the screenplay as indicated, then try again',
'unsupported_media': 'Use a picture instead, then try again',
'unknown_shot': 'Reload the page and choose an existing shot',
'unknown_take': 'Reload the page and choose a take that this shot has',
'take_not_ready': 'Generate this take again, or choose another one',
'chosen_by_user': 'To change it, choose another take on the page',
'nothing_to_cancel': 'Nothing to do; submit a new task when needed',
'not_allowed': 'Stop or continue this drama on the page',
'already_ended': 'Start a new drama when needed',
'needs_confirmation': 'Confirm first, then run this action',
'declined_by_user': 'Ask for this action again when needed',
'stale_revision': 'Reload the page to see the latest content, then change it again',
'changed_by_user': 'Continue from the content you edited by hand, or reload the page and try again',
'card_in_use': 'Wait for the drama to end, or stop it first, then change this card',
'project_changed': 'Reload the page to see the latest content, then change it again',
'image_changed': 'Reload the page to see the latest content, then change it again',
'speech_language': 'Use a sound in a supported language, or write the subtitles by hand',
'listen_failed': 'Try again, or write the subtitles by hand',
'music_failed': 'Try again',
'stems_failed': 'Try again',
'sound_failed': 'Try again',
'voice_failed': 'Try again',
'small_memory': 'Use picture generation on a Mac with 16 GB of memory or more',
}
FAILURE_MESSAGES_ZH = {
'The previous video is too short to continue; it needs to be at least 1.7 s long.': '接续的上一段视频太短,至少需要 1.7 秒',
Expand Down
Loading