Upload 4 files
Browse filesFiles changed (4)
- uis/layouts/benchmark.pyAdded+79
- uis/layouts/default.pyAdded+128
- uis/layouts/jobs.pyAdded+31
- uis/layouts/webcam.pyAdded+74
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879import gradio
from facefusion import benchmarker, state_managerfrom facefusion.uis.components import about, age_modifier_options, background_remover_options, benchmark, benchmark_options, deep_swapper_options, download, execution, execution_thread_count, expression_restorer_options, face_debugger_options, face_editor_options, face_enhancer_options, face_swapper_options, frame_colorizer_options, frame_enhancer_options, lip_syncer_options, memory, processors
def pre_check() -> bool: return benchmarker.pre_check()
def render() -> gradio.Blocks: with gradio.Blocks() as layout: with gradio.Row(): with gradio.Column(scale = 4): with gradio.Blocks(): about.render() with gradio.Blocks(): benchmark_options.render() with gradio.Blocks(): processors.render() with gradio.Blocks(): age_modifier_options.render() with gradio.Blocks(): background_remover_options.render() with gradio.Blocks(): deep_swapper_options.render() with gradio.Blocks(): expression_restorer_options.render() with gradio.Blocks(): face_debugger_options.render() with gradio.Blocks(): face_editor_options.render() with gradio.Blocks(): face_enhancer_options.render() with gradio.Blocks(): face_swapper_options.render() with gradio.Blocks(): frame_colorizer_options.render() with gradio.Blocks(): frame_enhancer_options.render() with gradio.Blocks(): lip_syncer_options.render() with gradio.Blocks(): execution.render() execution_thread_count.render() with gradio.Blocks(): download.render() with gradio.Blocks(): state_manager.set_item('video_memory_strategy', 'tolerant') memory.render() with gradio.Column(scale = 11): with gradio.Blocks(): benchmark.render() return layout
def listen() -> None: processors.listen() age_modifier_options.listen() background_remover_options.listen() deep_swapper_options.listen() expression_restorer_options.listen() download.listen() face_debugger_options.listen() face_editor_options.listen() face_enhancer_options.listen() face_swapper_options.listen() frame_colorizer_options.listen() frame_enhancer_options.listen() lip_syncer_options.listen() execution.listen() execution_thread_count.listen() memory.listen() benchmark.listen() benchmark_options.listen()
def run(ui : gradio.Blocks) -> None: ui.launch(favicon_path = 'facefusion.ico', inbrowser = state_manager.get_item('open_browser'))123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128import gradio
from facefusion import state_managerfrom facefusion.uis.components import about, age_modifier_options, background_remover_options, deep_swapper_options, download, execution, execution_thread_count, expression_restorer_options, face_debugger_options, face_detector, face_editor_options, face_enhancer_options, face_landmarker, face_masker, face_selector, face_swapper_options, face_tracker, frame_colorizer_options, frame_enhancer_options, instant_runner, job_manager, job_runner, lip_syncer_options, memory, output, output_options, preview, preview_options, processors, source, target, temp_frame, terminal, trim_frame, ui_workflow, voice_extractor, workflow
def pre_check() -> bool: return True
def render() -> gradio.Blocks: with gradio.Blocks() as layout: with gradio.Row(): with gradio.Column(scale = 4): with gradio.Blocks(): about.render() with gradio.Blocks(): processors.render() with gradio.Blocks(): age_modifier_options.render() with gradio.Blocks(): background_remover_options.render() with gradio.Blocks(): deep_swapper_options.render() with gradio.Blocks(): expression_restorer_options.render() with gradio.Blocks(): face_debugger_options.render() with gradio.Blocks(): face_editor_options.render() with gradio.Blocks(): face_enhancer_options.render() with gradio.Blocks(): face_swapper_options.render() with gradio.Blocks(): frame_colorizer_options.render() with gradio.Blocks(): frame_enhancer_options.render() with gradio.Blocks(): lip_syncer_options.render() with gradio.Blocks(): voice_extractor.render() with gradio.Blocks(): workflow.render() with gradio.Blocks(): execution.render() execution_thread_count.render() with gradio.Blocks(): download.render() with gradio.Blocks(): memory.render() with gradio.Blocks(): temp_frame.render() with gradio.Blocks(): output_options.render() with gradio.Column(scale = 4): with gradio.Blocks(): source.render() with gradio.Blocks(): target.render() with gradio.Blocks(): output.render() with gradio.Blocks(): terminal.render() with gradio.Blocks(): ui_workflow.render() instant_runner.render() job_runner.render() job_manager.render() with gradio.Column(scale = 7): with gradio.Blocks(): preview.render() preview_options.render() with gradio.Blocks(): trim_frame.render() with gradio.Blocks(): face_selector.render() with gradio.Blocks(): face_tracker.render() with gradio.Blocks(): face_masker.render() with gradio.Blocks(): face_detector.render() with gradio.Blocks(): face_landmarker.render() return layout
def listen() -> None: processors.listen() age_modifier_options.listen() background_remover_options.listen() deep_swapper_options.listen() expression_restorer_options.listen() face_debugger_options.listen() face_editor_options.listen() face_enhancer_options.listen() face_swapper_options.listen() frame_colorizer_options.listen() frame_enhancer_options.listen() lip_syncer_options.listen() execution.listen() execution_thread_count.listen() download.listen() memory.listen() temp_frame.listen() output_options.listen() source.listen() target.listen() output.listen() instant_runner.listen() job_runner.listen() job_manager.listen() terminal.listen() preview.listen() preview_options.listen() trim_frame.listen() face_selector.listen() face_tracker.listen() face_masker.listen() face_detector.listen() face_landmarker.listen() voice_extractor.listen() workflow.listen()
def run(ui : gradio.Blocks) -> None: ui.launch(favicon_path = 'facefusion.ico', inbrowser = state_manager.get_item('open_browser'))12345678910111213141516171819202122232425262728293031import gradio
from facefusion import state_managerfrom facefusion.uis.components import about, job_list, job_list_options
def pre_check() -> bool: return True
def render() -> gradio.Blocks: with gradio.Blocks() as layout: with gradio.Row(): with gradio.Column(scale = 4): with gradio.Blocks(): about.render() with gradio.Blocks(): job_list_options.render() with gradio.Column(scale = 11): with gradio.Blocks(): job_list.render() return layout
def listen() -> None: job_list_options.listen() job_list.listen()
def run(ui : gradio.Blocks) -> None: ui.launch(favicon_path = 'facefusion.ico', inbrowser = state_manager.get_item('open_browser'))1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374import gradio
from facefusion import state_managerfrom facefusion.uis.components import about, age_modifier_options, background_remover_options, deep_swapper_options, download, execution, execution_thread_count, expression_restorer_options, face_debugger_options, face_editor_options, face_enhancer_options, face_swapper_options, frame_colorizer_options, frame_enhancer_options, lip_syncer_options, processors, webcam, webcam_options
def pre_check() -> bool: return True
def render() -> gradio.Blocks: with gradio.Blocks() as layout: with gradio.Row(): with gradio.Column(scale = 4): with gradio.Blocks(): about.render() with gradio.Blocks(): webcam_options.render() with gradio.Blocks(): processors.render() with gradio.Blocks(): age_modifier_options.render() with gradio.Blocks(): background_remover_options.render() with gradio.Blocks(): deep_swapper_options.render() with gradio.Blocks(): expression_restorer_options.render() with gradio.Blocks(): face_debugger_options.render() with gradio.Blocks(): face_editor_options.render() with gradio.Blocks(): face_enhancer_options.render() with gradio.Blocks(): face_swapper_options.render() with gradio.Blocks(): frame_colorizer_options.render() with gradio.Blocks(): frame_enhancer_options.render() with gradio.Blocks(): lip_syncer_options.render() with gradio.Blocks(): execution.render() execution_thread_count.render() with gradio.Blocks(): download.render() with gradio.Column(scale = 11): with gradio.Blocks(): webcam.render() return layout
def listen() -> None: processors.listen() age_modifier_options.listen() background_remover_options.listen() deep_swapper_options.listen() expression_restorer_options.listen() download.listen() face_debugger_options.listen() face_editor_options.listen() face_enhancer_options.listen() face_swapper_options.listen() frame_colorizer_options.listen() frame_enhancer_options.listen() lip_syncer_options.listen() execution.listen() execution_thread_count.listen() webcam.listen()
def run(ui : gradio.Blocks) -> None: ui.launch(favicon_path = 'facefusion.ico', inbrowser = state_manager.get_item('open_browser'))uis/layouts/benchmark.pyAdded+79
uis/layouts/default.pyAdded+128
uis/layouts/jobs.pyAdded+31
uis/layouts/webcam.pyAdded+74