Removed unused vars

This commit is contained in:
Marc-Andre Ferland 2022-10-23 05:00:21 -04:00
parent 0d62123a0b
commit fc875651d3

View File

@ -473,7 +473,6 @@ def do_mk_img(req: Request):
opt_C = 4 opt_C = 4
opt_f = 8 opt_f = 8
opt_ddim_eta = 0.0 opt_ddim_eta = 0.0
opt_init_img = req.init_image
print(req.to_string(), '\n device', thread_data.device) print(req.to_string(), '\n device', thread_data.device)
print('\n\n Using precision:', thread_data.precision) print('\n\n Using precision:', thread_data.precision)
@ -532,7 +531,6 @@ def do_mk_img(req: Request):
else: else:
session_out_path = None session_out_path = None
seeds = ""
with torch.no_grad(): with torch.no_grad():
for n in trange(opt_n_iter, desc="Sampling"): for n in trange(opt_n_iter, desc="Sampling"):
for prompts in tqdm(data, desc="data"): for prompts in tqdm(data, desc="data"):
@ -651,8 +649,7 @@ def do_mk_img(req: Request):
save_image(filtered_image, filtered_img_out_path) save_image(filtered_image, filtered_img_out_path)
response_image.path_abs = filtered_img_out_path response_image.path_abs = filtered_img_out_path
del filtered_image del filtered_image
# Filter Applied, move to next seed
seeds += str(opt_seed) + ","
opt_seed += 1 opt_seed += 1
if thread_data.reduced_memory: if thread_data.reduced_memory: