Maria
commited on
Commit
·
02c021a
1
Parent(s):
ef99825
hw6
Browse files
app.py
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
-
from infer import infer, CONTROLNET_MODE
|
4 |
|
5 |
-
MAX_SEED = np.iinfo(np.int32).max
|
6 |
MAX_IMAGE_SIZE = 1024
|
7 |
|
8 |
examples = [
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
+
from infer import infer, CONTROLNET_MODE, MAX_SEED
|
4 |
|
|
|
5 |
MAX_IMAGE_SIZE = 1024
|
6 |
|
7 |
examples = [
|
infer.py
CHANGED
@@ -33,6 +33,8 @@ if torch.cuda.is_available():
|
|
33 |
else:
|
34 |
torch_dtype = torch.float32
|
35 |
|
|
|
|
|
36 |
default_model = 'CompVis/stable-diffusion-v1-4'
|
37 |
LoRA_path = 'new_model'
|
38 |
|
|
|
33 |
else:
|
34 |
torch_dtype = torch.float32
|
35 |
|
36 |
+
MAX_SEED = np.iinfo(np.int32).max
|
37 |
+
|
38 |
default_model = 'CompVis/stable-diffusion-v1-4'
|
39 |
LoRA_path = 'new_model'
|
40 |
|