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 os
import torch import torch
import contextlib
import json import json
import comfy.ops import comfy.ops

1
comfy/conds.py

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

1
comfy/controlnet.py

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

1
comfy/diffusers_load.py

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

2
comfy/gligen.py

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

1
comfy/model_base.py

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

3
comfy/sd.py

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

1
comfy/sd1_clip.py

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

Loading…
Cancel
Save