Skip to content

Commit

Permalink
Remove some unused imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Jan 26, 2024
1 parent d1533d9 commit 89507f8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions comfy/ldm/modules/attention.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
from inspect import isfunction
import math
import torch
import torch.nn.functional as F
from torch import nn, einsum
from einops import rearrange, repeat
from typing import Optional, Any
from functools import partial


from .diffusionmodules.util import checkpoint, AlphaBlender, timestep_embedding
from .sub_quadratic_attention import efficient_dot_product_attention
Expand Down
3 changes: 0 additions & 3 deletions comfy/ldm/modules/diffusionmodules/openaimodel.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
from abc import abstractmethod
import math

import numpy as np
import torch as th
import torch.nn as nn
import torch.nn.functional as F
from einops import rearrange
from functools import partial

from .util import (
checkpoint,
Expand Down
4 changes: 0 additions & 4 deletions comfy/samplers.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
from .k_diffusion import sampling as k_diffusion_sampling
from .extra_samplers import uni_pc
import torch
import enum
import collections
from comfy import model_management
import math
from comfy import model_base
import comfy.utils
import comfy.conds

def get_area_and_mult(conds, x_in, timestep_in):
area = (x_in.shape[2], x_in.shape[3], 0, 0)
Expand Down

0 comments on commit 89507f8

Please sign in to comment.