945 Commits
Author SHA1 Message Date
Henry Ruhs 550d439e06 rename process verbs to process level (#1263) 2026-11-02 18:55:13 +01:00
Henry Ruhs 38b4ca6793 move process lifecycle from workflows to process step (#1262) 2026-11-02 18:27:56 +01:00
henryruhs abab9eb4f0 downgrade cause coreml sucks 2026-11-01 22:36:48 +01:00
henryruhs dc9ee9044f limit session to 32, fix test 2026-11-01 21:07:45 +01:00
henryruhs 793c81f9e9 fix test 2026-11-01 19:26:03 +01:00
henryruhs a128f74c3c more testing 2026-10-31 23:21:48 +01:00
Henry RuhsandClaude Opus 5.5 647be8bb15 allow refresh after the access token expired (#1261)
* allow refresh after the access token expired

The session lives 10 minutes and the access token is valid for the first
half. The session guard checks the access window, while refresh, teardown,
session count and fork validation keep checking the session window. A
request declined with 401 can now refresh and resend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cd6JuupGDM8y2cpHrkJq6D

* minor change

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:19:36 +01:00
Henry Ruhs 5399eb1c3e ensure finding the fork id is really from a fork (#1260) 2026-10-31 21:48:32 +01:00
henryruhs 440fca7cc2 Merge remote-tracking branch 'origin/master' into v4
# Conflicts:
#	facefusion/download.py
#	facefusion/execution.py
#	facefusion/ffmpeg.py
#	facefusion/jobs/job_manager.py
#	facefusion/metadata.py
#	facefusion/uis/components/benchmark_options.py
#	facefusion/uis/components/face_selector.py
#	facefusion/uis/core.py
#	requirements.txt
#	tests/test_download.py
2026-10-31 14:18:11 +01:00
henryruhs fdb45a3a5e add test 2026-10-31 11:10:52 +01:00
Henry Ruhs e7a2848a88 Feat/reference groups (#1258)
* revamp reference system

* revamp reference system

* revamp reference system

* revamp reference system

* rename to reference face maps

* rename to reference face maps

* rename to reference face maps

* fix ci

* fix logic part1

* fix logic part2

* fix logic part2

* fix logic part3

* sort out ini, program and normalize

* sort out ini, program and normalize

* fix lint

* get rid of matrix reader

* revamp groups again

* revamp groups again part2

* revamp groups again part2a

* revamp groups again part2a

* minor typo

* switch to selector map to support source averaging

* save map different in state

* adjust the normalize of maps

* refactor

* refactor

* refactor

* refactor

* better test

* resolve find_match_group_index

* minor improvements

* find closes faces

* find closes faces

* fix according to code review
2026-10-30 16:28:00 +01:00
henryruhs a1af05a732 minor cosmetics 2026-10-27 23:25:36 +01:00
Henry Ruhs decc6c9d8f Patch 3.9.2 (#1259)
* migrate types fixes, ignore old gradio type violations

* migrate types fixes, ignore old gradio type violations

* make downloader more robust

* same terminate for run_ffmpeg_with_progress like run_ffmpeg has

* fix tiny drifts

* fix cast of temperature.gpu

* update dependencies

* fix typo
3.9.2
2026-10-26 18:51:55 +01:00
Henry Ruhs 4782a7e0ea migrate to multi reference frames pass (#1257) 2026-10-22 13:45:06 +02:00
Henry Ruhs 7d042f697c introduce api origin (#1256)
* introduce api origin

* introduce api origin

* add test

* adjust test

* adjust test

* moving it to cors section
2026-10-22 08:48:11 +02:00
henryruhs d9e21b5be8 fix detect of amd devices, remove resolve cudnn for old 16xx cards 2026-10-22 08:42:56 +02:00
Henry Ruhs b80eb3961b revamp-api-managers (#1255)
* bring both http manager and websocket manger to pass stress suite

* add download to is_busy

* standalone return are forbidden

* fix test

* use local_id variable

* use local_id variable
2026-10-21 12:21:26 +02:00
henryruhs 57c01ed6f1 improve upload lock 2026-10-20 09:49:37 +02:00
henryruhs bacdea27f8 mark capture and download via http manager 2026-10-20 08:53:06 +02:00
henryruhs a24893c9b3 avoid try/catch on websocket endpoints 2026-10-19 23:59:14 +02:00
henryruhs bab4dd96fb set the markers for busy upload 2026-10-19 23:36:10 +02:00
henryruhs 29116feca8 fix job related tests 2026-10-19 22:26:06 +02:00
henryruhs dd66c2d139 fix lint 2026-10-19 20:51:24 +02:00
Henry Ruhs d982608c94 Support for AMD ADLX and refactor device handles (#1251)
* experimental amd_adlx support

* experimental amd_adlx support

* reorder

* move methods out of libraries

* driver version for amd_smi

* driver version for amd_smi

* driver version for amd_adlx

* driver version for amd_adlx

* make detect_graphic_devices idiotic

* uniform interface for devices

* uniform interface for devices part2

* uniform interface for devices part3

* fix ci

* fix version in amd adlx

* fix None for version lockup
2026-10-19 20:47:35 +02:00
henryruhs 2e06c15e52 introduce http manager 2026-10-19 20:40:16 +02:00
henryruhs bd9e71e26b rename websocket_store to websocket_manager 2026-10-19 20:30:34 +02:00
henryruhs a714275a65 rename websocket_store to websocket_manager 2026-10-19 20:27:56 +02:00
henryruhs 6205a0db11 rename websocket_store to websocket_manager 2026-10-19 20:23:27 +02:00
henryruhs 73f2965d40 rename rtc_store to rtc_manager 2026-10-19 20:15:55 +02:00
henryruhs 1f5a1caf6d fix lint 2026-10-19 11:46:01 +02:00
henryruhs 2292de1136 minor change 2026-10-19 11:36:37 +02:00
henryruhs d543a67f65 fix style drift part5
 Conflicts:
	facefusion/apis/stream_video.py
	tests/apis/test_stream_video.py
2026-10-19 11:13:57 +02:00
Henry RuhsandClaude Opus 5.5 c3e7b6248c Use queue shutdown (#1253)
* introduce shutdown for queue

* introduce shutdown for queue

* make it solid

* test queue shutdown in stream senders and receivers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix test

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 11:08:20 +02:00
Henry RuhsandClaude Opus 5.5 d0752f033d job cancellation via api (#1250)
* first shot for job cancelation via api

* move helper to job manager

* adjust coding style

* add some test

* fix lint

* inline helpers

* fit JobId and StepIndex into the system

* clean stuff

* move towards v4

* back to v4 - job manager and runner remain stupid

* reduce mocks

* fix cancellation

* fix cancellation

* harden testing with invalid case

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 09:19:55 +02:00
henryruhs 6cc5ca0c93 fix style drift part4 2026-10-18 20:34:31 +02:00
henryruhs 94bc1b2dd6 fix style drift part3 2026-10-18 20:29:33 +02:00
henryruhs 019cf12615 fix style drift part2 2026-10-18 20:27:11 +02:00
henryruhs 0ae64347c2 fix style drift part1 2026-10-18 17:03:05 +02:00
henryruhs cb139c21cb fix ci 2026-10-18 11:57:25 +02:00
henryruhs a22512ad63 refactor process_step to return ErrorCode and handle session on finally 2026-10-18 11:25:04 +02:00
henryruhs 6f27c3a5f5 refactor process_step to return ErrorCode and handle session on finally 2026-10-18 11:24:27 +02:00
Henry Ruhs 96606fd7e3 fit JobId and StepIndex into the system (#1252) 2026-10-18 11:00:05 +02:00
henryruhs 22eda489c4 add missing is_linux() 2026-10-17 23:05:00 +02:00
henryruhs d9882c3298 strict is the new cool part1 2026-10-17 19:52:03 +02:00
henryruhs 4c1e3ef909 a session that is busy cannot be destroyed 2026-10-09 09:25:29 +02:00
henryruhs 9739ed71bf improve code coverage part14 2026-10-09 07:54:42 +02:00
henryruhs 52727f3a3f improve code coverage part14 2026-10-08 17:37:28 +02:00
henryruhs a615c45c7d improve code coverage part13 2026-10-08 17:20:49 +02:00
henryruhs 628779863f improve code coverage part13 2026-10-08 17:18:57 +02:00
henryruhs 5bd4ad582f fix destroy session 2026-10-08 16:36:42 +02:00