Downloads · 30 days
29
6% of all-time downloads
mehmetkeremturkcan/Suturing-Wan2.1-1.3B-T2V
Suturing-Wan2.1-1.3B-T2V is a text-to-video model from mehmetkeremturkcan. Use it when you need video from a text prompt. It is set up for diffusers.
<p align="center" <img src="https://github.com/mkturkcan/suturingmodels/blob/main/static/images/title.svg?raw=true" / </p
Downloads · 30 days
29
6% of all-time downloads
All-time downloads
487
Public
Repo size
700 MB
Likes
2
Public
Click a slice to open those files.
.safetensors700 MB · 100%
From the Hugging Face model README
This repository hosts the fine-tuned Wan2.1-T2V-1.3B text-to-video (t2v) diffusion model specialized for generating realistic robotic surgical suturing videos, capturing fine-grained sub-stitch actions including needle positioning, targeting, driving, and withdrawal. The model can differentiate between ideal and non-ideal surgical techniques, making it suitable for applications in surgical training, skill evaluation, and autonomous surgical system development.
import torch
from diffsynth import ModelManager, WanVideoPipeline, save_video, VideoData
model_manager = ModelManager(torch_dtype=torch.bfloat16, device="cpu")
model_manager.load_models([
"../Wan2.1-T2V-1.3B/diffusion_pytorch_model.safetensors",
"../Wan2.1-T2V-1.3B/models_t5_umt5-xxl-enc-bf16.pth",
"../Wan2.1-T2V-1.3B/Wan2.1_VAE.pth",
])
model_manager.load_lora("mehmetkeremturkcan/Suturing-Wan2.1-1.3B-T2V", lora_alpha=1.0)
pipe = WanVideoPipeline.from_model_manager(model_manager, device="cuda")
pipe.enable_vram_management(num_persistent_param_in_dit=None)
video = pipe(
prompt="A needledrivingnonideal clip, generated from a backhand task.",
num_inference_steps=50,
tiled=True
)
save_video(video, "video.mp4", fps=30, quality=5)
| Metric | Performance |
|---|---|
| L2 Reconstruction Loss | 0.0667 |
| Inference Time | ~360 seconds per video |
Further improvements will focus on increasing model robustness, expanding the dataset diversity, and enhancing real-time applicability to robotic surgical scenarios.