Skip to content

Commit

Permalink
Remove the underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Aug 16, 2023
1 parent 7104204 commit 7009b2e
Show file tree
Hide file tree
Showing 21 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion roop/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def suggest_execution_providers_choices() -> List[str]:


def suggest_ui_layouts_choices() -> List[str]:
return list_module_names('roop/uis/__layouts__')
return list_module_names('roop/uis/layouts')


def suggest_execution_thread_count_default() -> int:
Expand Down
4 changes: 2 additions & 2 deletions roop/processors/frame/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

def load_frame_processor_module(frame_processor: str) -> Any:
try:
frame_processor_module = importlib.import_module(f'roop.processors.frame.__modules__.{frame_processor}')
frame_processor_module = importlib.import_module(f'roop.processors.frame.modules.{frame_processor}')
for method_name in FRAME_PROCESSORS_METHODS:
if not hasattr(frame_processor_module, method_name):
raise NotImplementedError
Expand Down Expand Up @@ -57,7 +57,7 @@ def clear_frame_processors_modules() -> None:


def list_frame_processors_names() -> Optional[List[str]]:
return list_module_names('roop/processors/frame/__modules__')
return list_module_names('roop/processors/frame/modules')


def multi_process_frame(source_path: str, temp_frame_paths: List[str], process_frames: Callable[[str, List[str], Any], None], update: Callable[[], None]) -> None:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion roop/uis/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def init() -> None:

def load_ui_layout_module(ui_layout: str) -> Any:
try:
ui_layout_module = importlib.import_module(f'roop.uis.__layouts__.{ui_layout}')
ui_layout_module = importlib.import_module(f'roop.uis.layouts.{ui_layout}')
for method_name in UI_LAYOUT_METHODS:
if not hasattr(ui_layout_module, method_name):
raise NotImplementedError
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import gradio

from roop.uis.__components__ import processor, execution, temp_frame, settings, source, target, preview, trim_frame, face_analyser, face_selector, output_settings, output
from roop.uis.components import processor, execution, temp_frame, settings, source, target, preview, trim_frame, face_analyser, face_selector, output_settings, output


def render() -> gradio.Blocks:
Expand Down

0 comments on commit 7009b2e

Please sign in to comment.