aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMuhammad Rizqi Nur <rizqinur2010@gmail.com>2022-10-31 06:54:40 +0000
committerMuhammad Rizqi Nur <rizqinur2010@gmail.com>2022-10-31 06:54:40 +0000
commitd5ea878b2aa117588d85287cbd8983aa52177df5 (patch)
treec79775f54e2db57babd6c332bf05a54d3d839791 /modules
parent4123be632a98f70cda06e14c2f556f7ad38cd436 (diff)
downloadstable-diffusion-webui-gfx803-d5ea878b2aa117588d85287cbd8983aa52177df5.tar.gz
stable-diffusion-webui-gfx803-d5ea878b2aa117588d85287cbd8983aa52177df5.tar.bz2
stable-diffusion-webui-gfx803-d5ea878b2aa117588d85287cbd8983aa52177df5.zip
Fix merge conflicts
Diffstat (limited to 'modules')
-rw-r--r--modules/hypernetworks/hypernetwork.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/hypernetworks/hypernetwork.py b/modules/hypernetworks/hypernetwork.py
index 207808ee..2df38c70 100644
--- a/modules/hypernetworks/hypernetwork.py
+++ b/modules/hypernetworks/hypernetwork.py
@@ -395,11 +395,6 @@ def train_hypernetwork(hypernetwork_name, learn_rate, batch_size, data_root, log
previous_mean_loss = 0
print("Mean loss of {} elements".format(size))
- ititial_step = hypernetwork.step or 0
- if ititial_step > steps:
- return hypernetwork, filename
-
-
weights = hypernetwork.weights()
for weight in weights:
weight.requires_grad = True