Browse Source

Cleanup some unused imports.

pull/2616/head
comfyanonymous 10 months ago
parent
commit
4871a36458
  1. 3
      comfy/clip_vision.py
  2. 1
      comfy/conds.py
  3. 1
      comfy/controlnet.py
  4. 1
      comfy/diffusers_load.py
  5. 2
      comfy/gligen.py
  6. 1
      comfy/model_base.py
  7. 3
      comfy/sd.py
  8. 1
      comfy/sd1_clip.py

3
comfy/clip_vision.py

@ -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

1
comfy/conds.py

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

1
comfy/controlnet.py

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

1
comfy/diffusers_load.py

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

2
comfy/gligen.py

@ -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

1
comfy/model_base.py

@ -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):

3
comfy/sd.py

@ -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

1
comfy/sd1_clip.py

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

Loading…
Cancel
Save