rm unnecessary imports (#473)

* rm unnecessary imports

* doc
pull/495/head
Chengsong Zhang 2024-03-17 06:05:41 -05:00 committed by GitHub
parent c89f6005c3
commit a81565d906
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 2 additions and 12 deletions

View File

@ -16,7 +16,7 @@ You might also be interested in another extension I created: [Segment Anything f
## Update
- [v2.0.0-a](https://github.com/continue-revolution/sd-webui-animatediff/tree/v2.0.0-a) in `03/02/2023`: The whole extension has been reworked to make it easier to maintain.
- Prerequisite: WebUI >= 1.8.0 & ControlNet >=1.1.441
- Prerequisite: WebUI >= 1.8.0 & ControlNet >=1.1.441 & PyTorch >= 2.0.0
- New feature:
- ControlNet inpaint / IP-Adapter prompt travel / SparseCtrl / ControlNet keyframe, see [ControlNet V2V](docs/features.md#controlnet-v2v)
- FreeInit, see [FreeInit](docs/features.md#FreeInit)
@ -47,7 +47,7 @@ I am maintaining a [huggingface repo](https://huggingface.co/conrevo/AnimateDiff
## Tutorial
TODO
There are a lot of wonderful video tutorials on YouTube and bilibili, and you should check those out for now. For the time being, there are a series of updates on the way and I don't want to work on my own before I am satisfied. An official tutorial should come when I am satisfied with the available features.
## Thanks

View File

@ -2,21 +2,13 @@ import torch
import torch.fft as fft
import math
import os
import re
import sys
from modules import sd_models, shared, sd_samplers, devices
from modules.paths import extensions_builtin_dir
from modules.processing import StableDiffusionProcessing, opt_C, opt_f, StableDiffusionProcessingTxt2Img, StableDiffusionProcessingImg2Img, decode_latent_batch
from types import MethodType
from scripts.animatediff_logger import logger_animatediff as logger
from scripts.animatediff_ui import AnimateDiffProcess
def ddim_add_noise(
original_samples: torch.FloatTensor,
noise: torch.FloatTensor,

View File

@ -1,4 +1,3 @@
from calendar import c
from typing import List
from types import MethodType

View File

@ -1,4 +1,3 @@
import sys
from types import ModuleType
from typing import Optional