Fix more ruff lint (#139)

This commit is contained in:
Chenlei Hu
2024-02-09 01:41:38 +00:00
committed by GitHub
parent 6b3ad64388
commit e13072cb42
2 changed files with 1 additions and 4 deletions

View File

@@ -4,8 +4,6 @@ import os
import sys
import warnings
from threading import Thread
from modules.timer import startup_timer

View File

@@ -2,7 +2,6 @@ import datetime
import logging
import threading
import time
import traceback
import torch
from modules import errors, shared, devices
@@ -160,7 +159,7 @@ class State:
self.current_image_sampling_step = self.sampling_step
except Exception as e:
except Exception:
# traceback.print_exc()
# print(e)
# when switching models during genration, VAE would be on CPU, so creating an image will fail.