Commit
·
ceb5276
1
Parent(s):
7009e87
fixed abort button
Browse files
README.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
| 10 |
|
| 11 |
|
| 12 |
## 🔥 Latest News!!
|
|
|
|
| 13 |
* April 17 2025: 👋 Wan 2.1GP v4.1: Recam Master model support, view a video from a different angle. The video to process must be at least 81 frames long and you should set at least 15 steps denoising to get good results.
|
| 14 |
* April 13 2025: 👋 Wan 2.1GP v4.0: lots of goodies for you !
|
| 15 |
- A new UI, tabs were replaced by a Dropdown box to easily switch models
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
## 🔥 Latest News!!
|
| 13 |
+
* April 18 2025: 👋 Wan 2.1GP v4.2: FLF2V model support, official support from Wan for image2video start and end frames specialized for 720p.
|
| 14 |
* April 17 2025: 👋 Wan 2.1GP v4.1: Recam Master model support, view a video from a different angle. The video to process must be at least 81 frames long and you should set at least 15 steps denoising to get good results.
|
| 15 |
* April 13 2025: 👋 Wan 2.1GP v4.0: lots of goodies for you !
|
| 16 |
- A new UI, tabs were replaced by a Dropdown box to easily switch models
|
wgp.py
CHANGED
|
@@ -2850,14 +2850,17 @@ def process_tasks(state, progress=gr.Progress()):
|
|
| 2850 |
gen["prompts_max"] = 0
|
| 2851 |
gen["prompt"] = ""
|
| 2852 |
yield status
|
| 2853 |
-
|
|
|
|
|
|
|
|
|
|
| 2854 |
queue[:] = [item for item in queue if item['id'] != task['id']]
|
| 2855 |
update_global_queue_ref(queue)
|
| 2856 |
|
| 2857 |
gen["prompts_max"] = 0
|
| 2858 |
gen["prompt"] = ""
|
| 2859 |
end_time = time.time()
|
| 2860 |
-
if
|
| 2861 |
yield f"Video generation was aborted. Total Generation Time: {end_time-start_time:.1f}s"
|
| 2862 |
else:
|
| 2863 |
yield f"Total Generation Time: {end_time-start_time:.1f}s"
|
|
|
|
| 2850 |
gen["prompts_max"] = 0
|
| 2851 |
gen["prompt"] = ""
|
| 2852 |
yield status
|
| 2853 |
+
abort = gen.get("abort", False)
|
| 2854 |
+
if abort:
|
| 2855 |
+
gen["abort"] = False
|
| 2856 |
+
yield "Video Generation Aborted"
|
| 2857 |
queue[:] = [item for item in queue if item['id'] != task['id']]
|
| 2858 |
update_global_queue_ref(queue)
|
| 2859 |
|
| 2860 |
gen["prompts_max"] = 0
|
| 2861 |
gen["prompt"] = ""
|
| 2862 |
end_time = time.time()
|
| 2863 |
+
if abort:
|
| 2864 |
yield f"Video generation was aborted. Total Generation Time: {end_time-start_time:.1f}s"
|
| 2865 |
else:
|
| 2866 |
yield f"Total Generation Time: {end_time-start_time:.1f}s"
|