|
86 | 86 | parser.add_argument("--ui-debug-mode", action='store_true', help="Don't load model to quickly launch UI")
|
87 | 87 | parser.add_argument("--device-id", type=str, help="Select the default CUDA device to use (export CUDA_VISIBLE_DEVICES=0,1,etc might be needed before)", default=None)
|
88 | 88 | parser.add_argument("--administrator", action='store_true', help="Administrator rights", default=False)
|
| 89 | +parser.add_argument("--cors-allow-origins", type=str, help="Allowed CORS origins", default=None) |
89 | 90 | parser.add_argument("--tls-keyfile", type=str, help="Partially enables TLS, requires --tls-certfile to fully function", default=None)
|
90 | 91 | parser.add_argument("--tls-certfile", type=str, help="Partially enables TLS, requires --tls-keyfile to fully function", default=None)
|
91 | 92 | parser.add_argument("--server-name", type=str, help="Sets hostname of server", default=None)
|
@@ -150,9 +151,9 @@ def interrupt(self):
|
150 | 151 | self.interrupted = True
|
151 | 152 |
|
152 | 153 | def nextjob(self):
|
153 |
| - if opts.show_progress_every_n_steps == -1: |
| 154 | + if opts.show_progress_every_n_steps == -1: |
154 | 155 | self.do_set_current_image()
|
155 |
| - |
| 156 | + |
156 | 157 | self.job_no += 1
|
157 | 158 | self.sampling_step = 0
|
158 | 159 | self.current_image_sampling_step = 0
|
@@ -201,7 +202,7 @@ def do_set_current_image(self):
|
201 | 202 | return
|
202 | 203 | if self.current_latent is None:
|
203 | 204 | return
|
204 |
| - |
| 205 | + |
205 | 206 | if opts.show_progress_grid:
|
206 | 207 | self.current_image = sd_samplers.samples_to_image_grid(self.current_latent)
|
207 | 208 | else:
|
|
0 commit comments