cocktailpeanut commited on
os.path.sep instead of / (#12)
Browse files
gradio/i2v_14B_singleGPU.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
import argparse
|
| 3 |
import gc
|
| 4 |
import os.path as osp
|
|
|
|
| 5 |
import sys
|
| 6 |
import warnings
|
| 7 |
|
|
@@ -10,7 +11,7 @@ import gradio as gr
|
|
| 10 |
warnings.filterwarnings('ignore')
|
| 11 |
|
| 12 |
# Model
|
| 13 |
-
sys.path.insert(0,
|
| 14 |
import wan
|
| 15 |
from wan.configs import MAX_AREA_CONFIGS, WAN_CONFIGS
|
| 16 |
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|
|
|
|
| 2 |
import argparse
|
| 3 |
import gc
|
| 4 |
import os.path as osp
|
| 5 |
+
import os
|
| 6 |
import sys
|
| 7 |
import warnings
|
| 8 |
|
|
|
|
| 11 |
warnings.filterwarnings('ignore')
|
| 12 |
|
| 13 |
# Model
|
| 14 |
+
sys.path.insert(0, os.path.sep.join(osp.realpath(__file__).split(os.path.sep)[:-2]))
|
| 15 |
import wan
|
| 16 |
from wan.configs import MAX_AREA_CONFIGS, WAN_CONFIGS
|
| 17 |
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|
gradio/t2i_14B_singleGPU.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
|
| 2 |
import argparse
|
| 3 |
import os.path as osp
|
|
|
|
| 4 |
import sys
|
| 5 |
import warnings
|
| 6 |
|
|
@@ -9,7 +10,7 @@ import gradio as gr
|
|
| 9 |
warnings.filterwarnings('ignore')
|
| 10 |
|
| 11 |
# Model
|
| 12 |
-
sys.path.insert(0,
|
| 13 |
import wan
|
| 14 |
from wan.configs import WAN_CONFIGS
|
| 15 |
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|
|
|
|
| 1 |
# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
|
| 2 |
import argparse
|
| 3 |
import os.path as osp
|
| 4 |
+
import os
|
| 5 |
import sys
|
| 6 |
import warnings
|
| 7 |
|
|
|
|
| 10 |
warnings.filterwarnings('ignore')
|
| 11 |
|
| 12 |
# Model
|
| 13 |
+
sys.path.insert(0, os.path.sep.join(osp.realpath(__file__).split(os.path.sep)[:-2]))
|
| 14 |
import wan
|
| 15 |
from wan.configs import WAN_CONFIGS
|
| 16 |
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|
gradio/t2v_1.3B_singleGPU.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
|
| 2 |
import argparse
|
| 3 |
import os.path as osp
|
|
|
|
| 4 |
import sys
|
| 5 |
import warnings
|
| 6 |
|
|
@@ -9,7 +10,7 @@ import gradio as gr
|
|
| 9 |
warnings.filterwarnings('ignore')
|
| 10 |
|
| 11 |
# Model
|
| 12 |
-
sys.path.insert(0,
|
| 13 |
import wan
|
| 14 |
from wan.configs import WAN_CONFIGS
|
| 15 |
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|
|
|
|
| 1 |
# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
|
| 2 |
import argparse
|
| 3 |
import os.path as osp
|
| 4 |
+
import os
|
| 5 |
import sys
|
| 6 |
import warnings
|
| 7 |
|
|
|
|
| 10 |
warnings.filterwarnings('ignore')
|
| 11 |
|
| 12 |
# Model
|
| 13 |
+
sys.path.insert(0, os.path.sep.join(osp.realpath(__file__).split(os.path.sep)[:-2]))
|
| 14 |
import wan
|
| 15 |
from wan.configs import WAN_CONFIGS
|
| 16 |
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|
gradio/t2v_14B_singleGPU.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
|
| 2 |
import argparse
|
| 3 |
import os.path as osp
|
|
|
|
| 4 |
import sys
|
| 5 |
import warnings
|
| 6 |
|
|
@@ -9,7 +10,7 @@ import gradio as gr
|
|
| 9 |
warnings.filterwarnings('ignore')
|
| 10 |
|
| 11 |
# Model
|
| 12 |
-
sys.path.insert(0,
|
| 13 |
import wan
|
| 14 |
from wan.configs import WAN_CONFIGS
|
| 15 |
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|
|
|
|
| 1 |
# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.
|
| 2 |
import argparse
|
| 3 |
import os.path as osp
|
| 4 |
+
import os
|
| 5 |
import sys
|
| 6 |
import warnings
|
| 7 |
|
|
|
|
| 10 |
warnings.filterwarnings('ignore')
|
| 11 |
|
| 12 |
# Model
|
| 13 |
+
sys.path.insert(0, os.path.sep.join(osp.realpath(__file__).split(os.path.sep)[:-2]))
|
| 14 |
import wan
|
| 15 |
from wan.configs import WAN_CONFIGS
|
| 16 |
from wan.utils.prompt_extend import DashScopePromptExpander, QwenPromptExpander
|