Skip to content

Commit

Permalink
Believe this fixed multiprocessing subprocess issue, update release
Browse files Browse the repository at this point in the history
  • Loading branch information
nadermx committed Jul 7, 2021
1 parent 406d5e6 commit 0851d46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name="backgroundremover",
version="0.1.2",
version="0.1.3",
description="Background remover from image and video",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion src/backgroundremover/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
A library to remove background from videos and images
"""

__version__ = "0.1.2"
__version__ = "0.1.3"
__author__ = 'Johnathan Nader'
__credits__ = 'BackgroundRemover.app'
6 changes: 5 additions & 1 deletion src/backgroundremover/utilities.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import math
import multiprocessing
import torch.multiprocessing as multiprocessing
import subprocess as sp
import time
import ffmpeg
Expand All @@ -9,6 +9,10 @@
import tempfile
from .bg import DEVICE, Net, iter_frames, remove_many
import shlex
try:
set_start_method('spawn')
except RuntimeError:
pass

def worker(worker_nodes,
worker_index,
Expand Down

0 comments on commit 0851d46

Please sign in to comment.