Removed wan submodule stuff for now
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
|
# WIP, coming soon ish
|
||||||
import torch
|
import torch
|
||||||
from toolkit.config_modules import GenerateImageConfig, ModelConfig
|
from toolkit.config_modules import GenerateImageConfig, ModelConfig
|
||||||
from toolkit.models.base_model import BaseModel
|
from toolkit.models.base_model import BaseModel
|
||||||
@@ -23,19 +23,6 @@ import torch.distributed as dist
|
|||||||
from tqdm import tqdm
|
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):
|
class Wan21(BaseModel):
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user