print bucket sizes for training without resizing images #6620

fix an error when generating a picture with embedding in it
This commit is contained in:
AUTOMATIC
2023-01-13 14:32:15 +03:00
parent 486bda9b33
commit a176d89487
3 changed files with 19 additions and 3 deletions

View File

@@ -76,10 +76,10 @@ def insert_image_data_embed(image, data):
next_size = data_np_low.shape[0] + (h-(data_np_low.shape[0] % h))
next_size = next_size + ((h*d)-(next_size % (h*d)))
data_np_low.resize(next_size)
data_np_low = np.resize(data_np_low, next_size)
data_np_low = data_np_low.reshape((h, -1, d))
data_np_high.resize(next_size)
data_np_high = np.resize(data_np_high, next_size)
data_np_high = data_np_high.reshape((h, -1, d))
edge_style = list(data['string_to_param'].values())[0].cpu().detach().numpy().tolist()[0][:1024]