Cleanup some unused imports.

This commit is contained in:
comfyanonymous 2024-01-21 21:51:22 -05:00
parent 45bf88d8ef
commit 4871a36458
8 changed files with 2 additions and 11 deletions

View File

@ -1,7 +1,6 @@
from .utils import load_torch_file, transformers_convert, common_upscale, state_dict_prefix_replace
from .utils import load_torch_file, transformers_convert, state_dict_prefix_replace
import os
import torch
import contextlib
import json
import comfy.ops

View File

@ -1,4 +1,3 @@
import enum
import torch
import math
import comfy.utils

View File

@ -1,7 +1,6 @@
import torch
import math
import os
import contextlib
import comfy.utils
import comfy.model_management
import comfy.model_detection

View File

@ -1,4 +1,3 @@
import json
import os
import comfy.sd

View File

@ -1,5 +1,5 @@
import torch
from torch import nn, einsum
from torch import nn
from .ldm.modules.attention import CrossAttention
from inspect import isfunction

View File

@ -6,7 +6,6 @@ import comfy.model_management
import comfy.conds
import comfy.ops
from enum import Enum
import contextlib
from . import utils
class ModelType(Enum):

View File

@ -1,9 +1,6 @@
import torch
import contextlib
import math
from comfy import model_management
from .ldm.util import instantiate_from_config
from .ldm.models.autoencoder import AutoencoderKL, AutoencodingEngine
import yaml

View File

@ -6,7 +6,6 @@ import torch
import traceback
import zipfile
from . import model_management
import contextlib
import comfy.clip_model
import json