Max Reimann commited on
Commit
c9174f6
β€’
1 Parent(s): d25e12f

Fix demo config import, add emoji to pages

Browse files
pages/{Apply_preset.py β†’ 1_🎨_Apply_preset.py} RENAMED
@@ -3,9 +3,11 @@ import sys
3
  import torch.nn.functional as F
4
  import torch
5
 
6
- PACKAGE_PARENT = '../wise/'
 
7
  SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
8
  sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))
 
9
 
10
 
11
  import numpy as np
@@ -17,6 +19,7 @@ from effects.minimal_pipeline import MinimalPipelineEffect
17
  from helpers.visual_parameter_def import minimal_pipeline_presets, minimal_pipeline_bump_mapping_preset, minimal_pipeline_xdog_preset
18
  from helpers import torch_to_np, np_to_torch
19
  from effects import get_default_settings
 
20
 
21
  st.set_page_config(page_title="Preset Edit Demo", layout="wide")
22
 
 
3
  import torch.nn.functional as F
4
  import torch
5
 
6
+ PACKAGE_PARENT = '..'
7
+ WISE_DIR = '../wise/'
8
  SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
9
  sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))
10
+ sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, WISE_DIR)))
11
 
12
 
13
  import numpy as np
 
19
  from helpers.visual_parameter_def import minimal_pipeline_presets, minimal_pipeline_bump_mapping_preset, minimal_pipeline_xdog_preset
20
  from helpers import torch_to_np, np_to_torch
21
  from effects import get_default_settings
22
+ from demo_config import HUGGING_FACE
23
 
24
  st.set_page_config(page_title="Preset Edit Demo", layout="wide")
25
 
pages/{Local_edits.py β†’ 2_πŸ–ŒοΈ_Local_edits.py} RENAMED
@@ -12,12 +12,12 @@ from PIL import Image
12
  import streamlit as st
13
  from streamlit_drawable_canvas import st_canvas
14
 
15
- from .. import demo_config
16
- from demo_config import HUGGING_FACE
17
 
18
- PACKAGE_PARENT = '../wise/'
 
19
  SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
20
  sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))
 
21
 
22
 
23
 
@@ -25,6 +25,7 @@ from effects.gauss2d_xy_separated import Gauss2DEffect
25
  from effects.minimal_pipeline import MinimalPipelineEffect
26
  from helpers import torch_to_np, np_to_torch
27
  from effects import get_default_settings
 
28
 
29
  st.set_page_config(page_title="Editing Demo", layout="wide")
30
 
 
12
  import streamlit as st
13
  from streamlit_drawable_canvas import st_canvas
14
 
 
 
15
 
16
+ PACKAGE_PARENT = '..'
17
+ WISE_DIR = '../wise/'
18
  SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
19
  sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))
20
+ sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, WISE_DIR)))
21
 
22
 
23
 
 
25
  from effects.minimal_pipeline import MinimalPipelineEffect
26
  from helpers import torch_to_np, np_to_torch
27
  from effects import get_default_settings
28
+ from demo_config import HUGGING_FACE
29
 
30
  st.set_page_config(page_title="Editing Demo", layout="wide")
31
 
pages/{Readme.py β†’ 3_πŸ“–_Readme.py} RENAMED
File without changes