Spaces:
Running
on
L40S
Running
on
L40S
change save dir path to avoid shared outputs accross clients
Browse files- gradio/vace.py +10 -1
gradio/vace.py
CHANGED
@@ -246,7 +246,16 @@ class VACEInference:
|
|
246 |
offload_model=True)
|
247 |
|
248 |
name = '{0:%Y%m%d%-H%M%S}'.format(datetime.datetime.now())
|
249 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
video_frames = (torch.clamp(video / 2 + 0.5, min=0.0, max=1.0).permute(1, 2, 3, 0) * 255).cpu().numpy().astype(np.uint8)
|
251 |
|
252 |
try:
|
|
|
246 |
offload_model=True)
|
247 |
|
248 |
name = '{0:%Y%m%d%-H%M%S}'.format(datetime.datetime.now())
|
249 |
+
|
250 |
+
base_save_dir = './output'
|
251 |
+
save_dir_path = os.path.join(base_save_dir, name)
|
252 |
+
|
253 |
+
# Create the directory
|
254 |
+
os.makedirs(save_dir_path, exist_ok=True)
|
255 |
+
|
256 |
+
print(f"✅ Folder created: {save_dir_path}")
|
257 |
+
|
258 |
+
video_path = os.path.join(save_dir_path, f'cur_gallery_{name}.mp4')
|
259 |
video_frames = (torch.clamp(video / 2 + 0.5, min=0.0, max=1.0).permute(1, 2, 3, 0) * 255).cpu().numpy().astype(np.uint8)
|
260 |
|
261 |
try:
|