New version of loading video files
3 unresolved threads
3 unresolved threads
Compare changes
+ 3
− 10
@@ -3,12 +3,8 @@
@@ -19,8 +15,5 @@ class VideoBioFile(BioFile):
Now, the frame_selector
is actually used inside the preprocessor.Wrapper
class.
frame_selector = FrameSelector()
This is a very common python bug. You have to write it like this:What is wrong in my implementation? When I do not specify the
frame_selector
, I want to have the default one. I know that this uses the sameframe_selector
object by default, but I don't see why this should not work...http://effbot.org/zone/default-values.htm
I know this effect, and I am making use of that here. In the
FrameSelector
(https://gitlab.idiap.ch/bob/bob.bio.video/blob/master/bob/bio/video/utils/FrameSelector.py) class there is no internal variables other than the ones specified in the constructor. Hence, calling one of its functions does not modify the object. Therefore, it is safe to use the same object each time, there is no need to create a new object, i.e., whenNone
is passed.