mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Removed wan submodule stuff for now
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
|
||||
# WIP, coming soon ish
|
||||
import torch
|
||||
from toolkit.config_modules import GenerateImageConfig, ModelConfig
|
||||
from toolkit.models.base_model import BaseModel
|
||||
@@ -23,19 +23,6 @@ import torch.distributed as dist
|
||||
from tqdm import tqdm
|
||||
|
||||
|
||||
WAN_ROOT = os.path.join(REPOS_ROOT, "wan21")
|
||||
sys.path.append(WAN_ROOT)
|
||||
|
||||
if True:
|
||||
from wan.text2video import WanT2V
|
||||
from wan.distributed.fsdp import shard_model
|
||||
from wan.modules.model import WanModel
|
||||
from wan.modules.t5 import T5EncoderModel
|
||||
from wan.modules.vae import WanVAE
|
||||
from wan.utils.fm_solvers import (FlowDPMSolverMultistepScheduler,
|
||||
get_sampling_sigmas, retrieve_timesteps)
|
||||
from wan.utils.fm_solvers_unipc import FlowUniPCMultistepScheduler
|
||||
|
||||
class Wan21(BaseModel):
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user