You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from segmentor import Segmentor
import utils
model = utils.unpickle('model/model.pkl')
s = Segmentor(model, min_frames=10, threshold=0.7)
s.visualize_segments('videos/kiss.mp4')
Traceback (most recent call last):
File "", line 1, in
File "/Downloads/docker_data/Cver/kissing-detector/segmentor.py", line 110, in visualize_segments
segments = self.get_segments(path_video)
File "/Downloads/docker_data/Cver/kissing-detector/segmentor.py", line 93, in get_segments
audio, images = BuildDataset.one_video_extract_audio_and_stills(path_video)
File "/Downloads/docker_data/Cver/kissing-detector/pipeline.py", line 95, in one_video_extract_audio_and_stills
images.append(transformer(frame_pil))
File "/root/miniconda3/envs/kiss/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 60, in call
img = t(img)
File "/root/miniconda3/envs/kiss/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 97, in call
return F.to_tensor(pic)
File "/root/miniconda3/envs/kiss/lib/python3.6/site-packages/torchvision/transforms/functional.py", line 129, in to_tensor
np.array(pic, mode_to_nptype.get(pic.mode, np.uint8), copy=True)
TypeError: array() takes 1 positional argument but 2 were given
what should I do to fix it?
Thank .
The text was updated successfully, but these errors were encountered:
what should I do to fix it?
Thank .
The text was updated successfully, but these errors were encountered: