mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-06-03 22:04:53 +00:00
os.path.sep instead of / (#12)
This commit is contained in:
parent
0e3c42a830
commit
89b065f4fe
@ -2,6 +2,7 @@
|
||||
import argparse
|
||||
import gc
|
||||
import os.path as osp
|
||||
import os
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
@ -10,7 +11,7 @@ import gradio as gr
|
||||
warnings.filterwarnings('ignore')
|
||||
|
||||
# Model
|
||||
sys.path.insert(0, '/'.join(osp.realpath(__file__).split('/')[:-2]))
|
||||
sys.path.insert(0, os.path.sep.join(osp.realpath(__file__).split(os.path.sep)[:-2]))
|
||||
import wan
|
||||
from wan.configs import MAX_AREA_CONFIGS, WAN_CONFIGS
|
||||
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
|
||||
import argparse
|
||||
import os.path as osp
|
||||
import os
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
@ -9,7 +10,7 @@ import gradio as gr
|
||||
warnings.filterwarnings('ignore')
|
||||
|
||||
# Model
|
||||
sys.path.insert(0, '/'.join(osp.realpath(__file__).split('/')[:-2]))
|
||||
sys.path.insert(0, os.path.sep.join(osp.realpath(__file__).split(os.path.sep)[:-2]))
|
||||
import wan
|
||||
from wan.configs import WAN_CONFIGS
|
||||
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
|
||||
import argparse
|
||||
import os.path as osp
|
||||
import os
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
@ -9,7 +10,7 @@ import gradio as gr
|
||||
warnings.filterwarnings('ignore')
|
||||
|
||||
# Model
|
||||
sys.path.insert(0, '/'.join(osp.realpath(__file__).split('/')[:-2]))
|
||||
sys.path.insert(0, os.path.sep.join(osp.realpath(__file__).split(os.path.sep)[:-2]))
|
||||
import wan
|
||||
from wan.configs import WAN_CONFIGS
|
||||
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
|
||||
import argparse
|
||||
import os.path as osp
|
||||
import os
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
@ -9,7 +10,7 @@ import gradio as gr
|
||||
warnings.filterwarnings('ignore')
|
||||
|
||||
# Model
|
||||
sys.path.insert(0, '/'.join(osp.realpath(__file__).split('/')[:-2]))
|
||||
sys.path.insert(0, os.path.sep.join(osp.realpath(__file__).split(os.path.sep)[:-2]))
|
||||
import wan
|
||||
from wan.configs import WAN_CONFIGS
|
||||
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|
||||
|
Loading…
Reference in New Issue
Block a user