mirror of
https://github.com/facefusion/facefusion.git
synced 2026-07-31 22:37:24 +02:00
Patch 3.5.4 (#1055)
* remove insecure flag from curl * eleminate repating definitons * limit processors and ui layouts by choices * follow couple of v4 standards * use more secure mkstemp * dynamic cache path for execution providers * fix benchmarker, prevent path traveling via job-id * fix order in execution provider choices * resort by prioroty * introduce support for QNN * close file description for Windows to stop crying * prevent ConnectionResetError under windows * needed for nested .caches directory as onnxruntime does not create it * different approach to silent asyncio * update dependencies * simplify the name to just inference providers * switch to trt_builder_optimization_level 4
This commit is contained in:
+5
-2
@@ -1,10 +1,12 @@
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
from facefusion.json import read_json, write_json
|
||||
|
||||
|
||||
def test_read_json() -> None:
|
||||
_, json_path = tempfile.mkstemp(suffix = '.json')
|
||||
file_descriptor, json_path = tempfile.mkstemp(suffix = '.json')
|
||||
os.close(file_descriptor)
|
||||
|
||||
assert not read_json(json_path)
|
||||
|
||||
@@ -14,6 +16,7 @@ def test_read_json() -> None:
|
||||
|
||||
|
||||
def test_write_json() -> None:
|
||||
_, json_path = tempfile.mkstemp(suffix = '.json')
|
||||
file_descriptor, json_path = tempfile.mkstemp(suffix = '.json')
|
||||
os.close(file_descriptor)
|
||||
|
||||
assert write_json(json_path, {})
|
||||
|
||||
Reference in New Issue
Block a user