mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-15 08:36:41 +00:00
Update train_network.py
This commit is contained in:
@@ -1028,7 +1028,7 @@ class NetworkTrainer:
|
||||
#Converts batch of latents into list of dicts containing individual latents, height and width to merge across processes
|
||||
#Allows for different latent sizes
|
||||
latents_list = []
|
||||
for idx in range(len(batch["captions"]):
|
||||
for idx in range(len(batch["captions"])):
|
||||
latent_dict = {}
|
||||
latent_dict["prompt"] = batch["captions"][idx]
|
||||
latent_dict["height"] = latents.shape[2] * 8
|
||||
|
||||
Reference in New Issue
Block a user