Closed fcakyon closed 3 weeks ago
I'll try to soft-type this, thanks!
@LemurPwned The same issue is present with spacy
dependency as well.
should be moved into: https://github.com/LemurPwned/video-sampler/blob/72ec1bb58790a7e7d21e9e5bc07d22cd41bf0544/video_sampler/language/keyword_capture.py#L58
opened a pull request for it: https://github.com/LemurPwned/video-sampler/pull/30
Same issue for transformers https://github.com/LemurPwned/video-sampler/blob/72ec1bb58790a7e7d21e9e5bc07d22cd41bf0544/video_sampler/visualisation/clustering.py#L10 and pysrt dependencies https://github.com/LemurPwned/video-sampler/blob/72ec1bb58790a7e7d21e9e5bc07d22cd41bf0544/video_sampler/language/keyword_capture.py#L4
🚀 Feature Request
torch
,spacy
,transformers
,pysrt
are hard dependencies but should be optional.When I run this import:
I get this error:
This line is the source of the error:
https://github.com/LemurPwned/video-sampler/blob/72ec1bb58790a7e7d21e9e5bc07d22cd41bf0544/video_sampler/gating.py#L168
🔈 Motivation
I am not interested in the clip gating and visualization feature, I only want to sample frames from a video using classical methods. In this case, I shouldn't need
torch
(huge dependency) ortransformers
packages installed in the env to sample frames from a video.It can be an optional dependency only triggered when the user calls the
ClipGate
class orbuild_feature_model
,parse_srt_subtitle
,build_feature_model
functions.Pull Request
Opened a pull request for this: https://github.com/LemurPwned/video-sampler/pull/30