improve en performance

This commit is contained in:
Vladimir Mandic
2023-11-04 12:58:45 -04:00
parent ca0af39086
commit 6e05fa865a
11 changed files with 50 additions and 69 deletions
-1
View File
@@ -727,7 +727,6 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
def validate_sample(sample):
sample[0][0][0] = np.nan
with warnings.catch_warnings(record=True) as w:
cast = sample.astype(np.uint8)
if len(w) > 0: