Skip to content

Commit a87f446

Browse files
committed
Rename main to misc to avoid confusion
1 parent bcf48a5 commit a87f446

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# This launches DepthMap without the AUTOMATIC1111/stable-diffusion-webui
2+
# If DepthMap is installed as an extension,
3+
# you may want to change the working directory to the stable-diffusion-webui root.
4+
25
import argparse
36
import src.common_ui
47

scripts/depthmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from src import common_ui
88
from src.core import core_generation_funnel
99
from src.gradio_args_transport import GradioComponentBundle
10-
from src.main import *
10+
from src.misc import *
1111

1212

1313
# Ugly workaround to fix gradio tempfile issue

src/backbone.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# This file contains stable-duiffusion-webui stuff that the plugin relies on.
2-
# Eventually, when we have a standalone interface, this will load either standalone backbone or webui backbone.
1+
# DepthMap can be run inside stable-duiffusion-webui, but also separately.
2+
# All the stable-duiffusion-webui stuff that the DepthMap relies on
3+
# must be resided in this file (or in the scripts folder).
4+
35
try:
46
# stable-duiffusion-webui backbone
57
from modules.images import save_image # Should fail if not on stable-duiffusion-webui
@@ -93,4 +95,4 @@ def unload_sd_model(): pass # Not needed
9395

9496
def reload_sd_model(): pass # Not needed
9597

96-
def get_hide_dirs(): return {} # Directories will not be hidden from traversal
98+
def get_hide_dirs(): return {} # Directories will not be hidden from traversal (except when starts with the dot)

src/common_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from src.core import core_generation_funnel, unload_models, run_makevideo
88
from src.depthmap_generation import ModelHolder
99
from src.gradio_args_transport import GradioComponentBundle
10-
from src.main import *
10+
from src.misc import *
1111

1212

1313
def main_ui_panel(is_depth_tab):

src/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import traceback
1717

1818
# Our code
19-
from src.main import *
19+
from src.misc import *
2020
from src.stereoimage_generation import create_stereoimages
2121
from src.depthmap_generation import ModelHolder
2222
from src import backbone

src/depthmap_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from pix2pix.options.test_options import TestOptions
2525

2626
# Our code
27-
from src.main import *
27+
from src.misc import *
2828
from src import backbone
2929

3030
global depthmap_device

src/main.py renamed to src/misc.py

File renamed without changes.

0 commit comments

Comments
 (0)