manual fixes for ruff

This commit is contained in:
AUTOMATIC
2023-05-10 08:25:25 +03:00
parent 762265eab5
commit 96d6ca4199
22 changed files with 129 additions and 129 deletions

View File

@@ -243,7 +243,7 @@ def make_convolutional_sample(batch, model, custom_steps=None, eta=1.0, quantize
x_sample_noquant = model.decode_first_stage(sample, force_not_quantize=True)
log["sample_noquant"] = x_sample_noquant
log["sample_diff"] = torch.abs(x_sample_noquant - x_sample)
except:
except Exception:
pass
log["sample"] = x_sample