root
commited on
Commit
·
70fbc25
1
Parent(s):
71aed9c
updatign path for remove background
Browse files- __pycache__/handler.cpython-310.pyc +0 -0
- dw_poses_videos/pose-3.mp4 +0 -0
- handler.py +2 -1
__pycache__/handler.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/handler.cpython-310.pyc and b/__pycache__/handler.cpython-310.pyc differ
|
|
|
dw_poses_videos/pose-3.mp4
ADDED
|
Binary file (692 kB). View file
|
|
|
handler.py
CHANGED
|
@@ -395,7 +395,8 @@ class EndpointHandler():
|
|
| 395 |
#remove background
|
| 396 |
# self.print_directory_contents()
|
| 397 |
removed_background_output_path = os.path.join(save_dir, "removed_background_result.mp4")
|
| 398 |
-
|
|
|
|
| 399 |
print("Command is " + remove_background_command)
|
| 400 |
remove_background_result = subprocess.run(remove_background_command, shell=True, capture_output=True, text=True)
|
| 401 |
if remove_background_result.returncode != 0:
|
|
|
|
| 395 |
#remove background
|
| 396 |
# self.print_directory_contents()
|
| 397 |
removed_background_output_path = os.path.join(save_dir, "removed_background_result.mp4")
|
| 398 |
+
remove_background_script_path = os.path.join(base_dir, "rembg_video.py")
|
| 399 |
+
remove_background_command = f'python3 {remove_background_script_path} {swapped_face_video_path} {removed_background_output_path}'
|
| 400 |
print("Command is " + remove_background_command)
|
| 401 |
remove_background_result = subprocess.run(remove_background_command, shell=True, capture_output=True, text=True)
|
| 402 |
if remove_background_result.returncode != 0:
|