lnyan commited on
Commit
1905d19
1 Parent(s): c00251a
Files changed (4) hide show
  1. PyPatchMatch/Makefile +2 -2
  2. app.py +3 -0
  3. packages.txt +1 -0
  4. requirements.txt +1 -0
PyPatchMatch/Makefile CHANGED
@@ -15,9 +15,9 @@ CXX = $(ENVIRONMENT_OPTIONS) g++
15
  CXXFLAGS = -std=c++14
16
  CXXFLAGS += -Ofast -ffast-math -w
17
  # CXXFLAGS += -g
18
- CXXFLAGS += $(shell pkg-config --cflags opencv) -fPIC
19
  CXXFLAGS += $(INCLUDE_DIR)
20
- LDFLAGS = $(shell pkg-config --cflags --libs opencv) -shared -fPIC
21
 
22
 
23
  CXXSOURCES = $(shell find $(SRC_DIR)/ -name "*.cpp")
 
15
  CXXFLAGS = -std=c++14
16
  CXXFLAGS += -Ofast -ffast-math -w
17
  # CXXFLAGS += -g
18
+ CXXFLAGS += $(shell pkg-config --cflags opencv4) -fPIC
19
  CXXFLAGS += $(INCLUDE_DIR)
20
+ LDFLAGS = $(shell pkg-config --cflags --libs opencv4) -shared -fPIC
21
 
22
 
23
  CXXSOURCES = $(shell find $(SRC_DIR)/ -name "*.cpp")
app.py CHANGED
@@ -126,6 +126,7 @@ def run_outpaint(
126
  state,
127
  ):
128
  base64_str = "base64"
 
129
  if True:
130
  text2img, inpaint = get_model()
131
  if enable_safety:
@@ -209,6 +210,8 @@ proceed_button_js = load_js("proceed")
209
  mode_js = load_js("mode")
210
  setup_button_js = load_js("setup")
211
 
 
 
212
  get_model(get_token())
213
 
214
  with blocks as demo:
 
126
  state,
127
  ):
128
  base64_str = "base64"
129
+ return sel_buffer_str
130
  if True:
131
  text2img, inpaint = get_model()
132
  if enable_safety:
 
210
  mode_js = load_js("mode")
211
  setup_button_js = load_js("setup")
212
 
213
+ def get_model(x):
214
+ pass
215
  get_model(get_token())
216
 
217
  with blocks as demo:
packages.txt CHANGED
@@ -1,2 +1,3 @@
1
  build-essential
 
2
  libopencv-dev
 
1
  build-essential
2
+ python3-opencv
3
  libopencv-dev
requirements.txt CHANGED
@@ -5,6 +5,7 @@ numpy==1.22.4
5
  opencv-python-headless==4.6.0.66
6
  torch==1.12.0+cu113
7
  torchvision==0.13.0+cu113
 
8
  scipy
9
  scikit-image
10
  diffusers==0.3.0
 
5
  opencv-python-headless==4.6.0.66
6
  torch==1.12.0+cu113
7
  torchvision==0.13.0+cu113
8
+ Pillow
9
  scipy
10
  scikit-image
11
  diffusers==0.3.0