bob issueshttps://gitlab.idiap.ch/groups/bob/-/issues2019-05-21T06:19:22Zhttps://gitlab.idiap.ch/bob/bob/-/issues/254Some critical packages should not be pinned in the bob recipe2019-05-21T06:19:22ZAmir MOHAMMADISome critical packages should not be pinned in the bob recipeRight now we pin everything but we should not pin
```
# aggressive_update_packages (sequence: str)
# A list of packages that, if installed, are always updated to the
# latest possible version.
#
# aggressive_update_packages:
# - c...Right now we pin everything but we should not pin
```
# aggressive_update_packages (sequence: str)
# A list of packages that, if installed, are always updated to the
# latest possible version.
#
# aggressive_update_packages:
# - ca-certificates
# - certifi
# - openssl
```
these 3 packages since they are required to make sure environments will work over time.
I will assign it to you Tiago since you have a lot of energy ;)Amir MOHAMMADIAmir MOHAMMADIhttps://gitlab.idiap.ch/bob/bob.pad.base/-/issues/31APCER values are wrong2019-05-20T15:45:13ZAmir MOHAMMADIAPCER values are wrongAccording to the standard, APCER must be reported per PAI and the final APCER must be max of all other PAI specific APCERs.
We don't do that in our `bob pad metric` command. We are just reporting FAR and call it APCER.According to the standard, APCER must be reported per PAI and the final APCER must be max of all other PAI specific APCERs.
We don't do that in our `bob pad metric` command. We are just reporting FAR and call it APCER.https://gitlab.idiap.ch/bob/bob.devtools/-/issues/24CONDA_BUILD_SYSROOT is incorrectly set on macOS2019-05-20T11:34:28ZAndré AnjosCONDA_BUILD_SYSROOT is incorrectly set on macOSIn my system (macOS Mojave - 10.14) and as well on the previous version (10.13), when I `conda activate` an environment containing `bob-devel` and installed compilers, the value of `${CONDA_BUILD_SYSROOT}` is not correctly set.
```sh
$ ...In my system (macOS Mojave - 10.14) and as well on the previous version (10.13), when I `conda activate` an environment containing `bob-devel` and installed compilers, the value of `${CONDA_BUILD_SYSROOT}` is not correctly set.
```sh
$ conda activate bug
(bug) $ echo $CONDA_BUILD_SYSROOT
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
```
Since in bob/bob.admin/gitlab/conda_build_config.yaml, the value of that variable points (correctly) to ``/opt/MacOSX10.9.sdk``, this should be same when you `conda activate` the environment. Somehow, this variable is not making to the environment, which breaks it for building binaries:
```sh
(bug) $ buildout
Creating directory '/Users/andre/Projects/bob/bob.learn.boosting/eggs'.
mr.developer: Creating missing sources dir /Users/andre/Projects/bob/bob.learn.boosting/src.
Creating directory '/Users/andre/Projects/bob/bob.learn.boosting/bin'.
Creating directory '/Users/andre/Projects/bob/bob.learn.boosting/parts'.
Creating directory '/Users/andre/Projects/bob/bob.learn.boosting/develop-eggs'.
Develop: '/Users/andre/Projects/bob/bob.learn.boosting/.'
bob.buildout.tools: taking requirement `setuptools' (40.2.0) from `/Users/andre/conda/envs/bug/lib/python3.6/site-packages'
bob.buildout.tools: taking requirement `scipy' (1.1.0) from `/Users/andre/conda/envs/bug/lib/python3.6/site-packages'
bob.buildout.tools: taking requirement `bob.extension' (3.1.1b0) from `/Users/andre/conda/envs/bug/lib/python3.6/site-packages'
bob.buildout.tools: taking requirement `bob.blitz' (2.0.17b0) from `/Users/andre/conda/envs/bug/lib/python3.6/site-packages'
bob.buildout.tools: taking requirement `bob.core' (2.2.2b0) from `/Users/andre/conda/envs/bug/lib/python3.6/site-packages'
bob.buildout.tools: taking requirement `bob.io.base' (3.0.5b0) from `/Users/andre/conda/envs/bug/lib/python3.6/site-packages'
running develop
running egg_info
creating bob.learn.boosting.egg-info
writing bob.learn.boosting.egg-info/PKG-INFO
writing dependency_links to bob.learn.boosting.egg-info/dependency_links.txt
writing entry points to bob.learn.boosting.egg-info/entry_points.txt
writing requirements to bob.learn.boosting.egg-info/requires.txt
writing top-level names to bob.learn.boosting.egg-info/top_level.txt
writing manifest file 'bob.learn.boosting.egg-info/SOURCES.txt'
reading manifest file 'bob.learn.boosting.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'bootstrap-buildout.py'
writing manifest file 'bob.learn.boosting.egg-info/SOURCES.txt'
running build_ext
Re-run cmake no build system arguments
-- The C compiler identification is Clang 4.0.1
-- The CXX compiler identification is Clang 4.0.1
-- Check for working C compiler: /Users/andre/conda/envs/bug/bin/x86_64-apple-darwin13.4.0-clang
-- Check for working C compiler: /Users/andre/conda/envs/bug/bin/x86_64-apple-darwin13.4.0-clang -- broken
CMake Error at /Users/andre/conda/envs/bug/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/Users/andre/conda/envs/bug/bin/x86_64-apple-darwin13.4.0-clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/andre/Projects/bob/bob.learn.boosting/build/build_cmake/bob_learn_boosting/CMakeFiles/CMakeTmp
Run Build Command:"/usr/local/bin/gmake" "cmTC_f66b7/fast"
/usr/local/bin/gmake -f CMakeFiles/cmTC_f66b7.dir/build.make CMakeFiles/cmTC_f66b7.dir/build
gmake[1]: Entering directory '/Users/andre/Projects/bob/bob.learn.boosting/build/build_cmake/bob_learn_boosting/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f66b7.dir/testCCompiler.c.o
/Users/andre/conda/envs/bug/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isysroot /opt/MacOSX10.9.sdk -mmacosx-version-min=10.9 -o CMakeFiles/cmTC_f66b7.dir/testCCompiler.c.o -c /Users/andre/Projects/bob/bob.learn.boosting/build/build_cmake/bob_learn_boosting/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_f66b7
/Users/andre/conda/envs/bug/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f66b7.dir/link.txt --verbose=1
/Users/andre/conda/envs/bug/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isysroot /opt/MacOSX10.9.sdk -mmacosx-version-min=10.9 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs CMakeFiles/cmTC_f66b7.dir/testCCompiler.c.o -o cmTC_f66b7
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_f66b7.dir/build.make:87: cmTC_f66b7] Error 1
gmake[1]: Leaving directory '/Users/andre/Projects/bob/bob.learn.boosting/build/build_cmake/bob_learn_boosting/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_f66b7/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/andre/Projects/bob/bob.learn.boosting/build/build_cmake/bob_learn_boosting/CMakeFiles/CMakeOutput.log".
See also "/Users/andre/Projects/bob/bob.learn.boosting/build/build_cmake/bob_learn_boosting/CMakeFiles/CMakeError.log".
error: Could not generate makefiles with CMake
While:
Installing.
Processing develop directory '/Users/andre/Projects/bob/bob.learn.boosting/.'.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/Users/andre/conda/envs/bug/lib/python3.6/site-packages/zc/buildout/buildout.py", line 2128, in main
getattr(buildout, command)(args)
File "/Users/andre/conda/envs/bug/lib/python3.6/site-packages/zc/buildout/buildout.py", line 660, in install
installed_develop_eggs = self._develop()
File "/Users/andre/conda/envs/bug/lib/python3.6/site-packages/zc/buildout/buildout.py", line 903, in _develop
zc.buildout.easy_install.develop(setup, dest)
File "/Users/andre/conda/envs/bug/lib/python3.6/site-packages/bob/buildout/extension.py", line 213, in develop
zc.buildout.easy_install.call_subprocess(args)
File "/Users/andre/conda/envs/bug/lib/python3.6/site-packages/zc/buildout/easy_install.py", line 166, in call_subprocess
% repr(args)[1:-1])
Exception: Failed to run command:
'/Users/andre/conda/envs/bug/bin/python', '/var/folders/b3/7l98n3bd7dqc1stjmgxb9mbw0000gn/T/tmpyhmf1cbq', '-v', 'develop', '-mxN', '-d', '/Users/andre/Projects/bob/bob.learn.boosting/develop-eggs/tmpwt4h3ep6build'
```André AnjosAndré Anjoshttps://gitlab.idiap.ch/bob/bob.learn.em/-/issues/27bob.learn.em/doc/guide.rst:796:Footnote [5] is not referenced.2019-05-06T12:38:10ZAmir MOHAMMADIbob.learn.em/doc/guide.rst:796:Footnote [5] is not referenced.this is making the docs fail to build.this is making the docs fail to build.Conda-based CITiago de Freitas PereiraTiago de Freitas Pereirahttps://gitlab.idiap.ch/bob/bob.learn.em/-/issues/26training is very verbose2019-05-06T12:38:09ZManuel Günthersiebenkopf@googlemail.comtraining is very verboseUsually, training an EM model using `bob.learn.em.train` should not emit `info` messages, or only few `info` messages. However, when training, for example, a KMeans, I get tons of `info` messages. Running several such trainings in parall...Usually, training an EM model using `bob.learn.em.train` should not emit `info` messages, or only few `info` messages. However, when training, for example, a KMeans, I get tons of `info` messages. Running several such trainings in parallel simply kills my console.
The reason is here: https://gitlab.idiap.ch/bob/bob.learn.em/blob/master/bob/learn/em/train.py#L61, where `info` messages are emitted, where `debug` level messages should be emitted, if any.Manuel Günthersiebenkopf@googlemail.comManuel Günthersiebenkopf@googlemail.comhttps://gitlab.idiap.ch/bob/bob.learn.em/-/issues/25ML_GMMTrainer.initialize() does not accept a random generator argument2019-05-06T12:38:09ZAmir MOHAMMADIML_GMMTrainer.initialize() does not accept a random generator argumentI am trying to fix a bug in bob.bio.gmm!9 where the `rng` argument was given at a wrong position: https://gitlab.idiap.ch/bob/bob.bio.gmm/merge_requests/9/diffs#note_17651
But fixing that revealed that ML_GMMTrainer.initialize() does not...I am trying to fix a bug in bob.bio.gmm!9 where the `rng` argument was given at a wrong position: https://gitlab.idiap.ch/bob/bob.bio.gmm/merge_requests/9/diffs#note_17651
But fixing that revealed that ML_GMMTrainer.initialize() does not accept a random generator argument and the code crashes in the builds https://gitlab.idiap.ch/bob/bob.bio.gmm/-/jobs/80459 :
```python
======================================================================
ERROR: bob.bio.gmm.test.test_scripts.test_ivector_lda_wccn_plda_sequential
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.bio.gmm/build-prefix/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.bio.gmm/build-prefix/lib/python2.7/site-packages/bob/bio/gmm/test/test_scripts.py", line 198, in test_ivector_lda_wccn_plda_sequential
_verify(parameters, test_dir, 'test_ivector_lda_wccn_plda_sequential', ref_modifier='-ivector-lda-wccn-plda')
File "/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.bio.gmm/build-prefix/lib/python2.7/site-packages/bob/bio/gmm/test/test_scripts.py", line 27, in _verify
executable(parameters)
File "/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.bio.gmm/build-prefix/lib/python2.7/site-packages/bob/bio/base/script/verify.py", line 457, in main
verify(args, command_line_parameters)
File "/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.bio.gmm/build-prefix/lib/python2.7/site-packages/bob/bio/base/script/verify.py", line 437, in verify
if not execute(args):
File "/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.bio.gmm/build-prefix/lib/python2.7/site-packages/bob/bio/base/script/verify.py", line 290, in execute
force = args.force)
File "/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.bio.gmm/build-prefix/lib/python2.7/site-packages/bob/bio/base/tools/algorithm.py", line 56, in train_projector
algorithm.train_projector(train_features, fs.projector_file)
File "/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.bio.gmm/build-prefix/lib/python2.7/site-packages/bob/bio/gmm/algorithm/IVector.py", line 139, in train_projector
self.train_ubm(data)
File "/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.bio.gmm/build-prefix/lib/python2.7/site-packages/bob/bio/gmm/algorithm/GMM.py", line 128, in train_ubm
bob.learn.em.train(self.ubm_trainer, self.ubm, array, self.gmm_training_iterations, self.training_threshold, rng=self.rng)
File "/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.bio.gmm/build-prefix/lib/python2.7/site-packages/bob/learn/em/train.py", line 49, in train
trainer.initialize(machine, data, rng)
TypeError: function takes at most 2 arguments (3 given)
```
Any idea on how this should be handled? should it ignore rng or should it be changed to accept it?Amir MOHAMMADIAmir MOHAMMADIhttps://gitlab.idiap.ch/bob/bob.learn.em/-/issues/23Variance flooring is not set properly in the constructor2019-05-06T12:38:08ZTiago de Freitas PereiraVariance flooring is not set properly in the constructorFor some reason the variance threshold is not set in the initialization of the GMMTrainers (ML and MAP).
Currently, the default is set to 0.0 and not to: either the minimum limit value (if nothing is set) or the one explicitly set in th...For some reason the variance threshold is not set in the initialization of the GMMTrainers (ML and MAP).
Currently, the default is set to 0.0 and not to: either the minimum limit value (if nothing is set) or the one explicitly set in the constructor.
The only case that this works is when you set this value explicitly via the method `set_variance_thresholds` (e.g http://pythonhosted.org/bob.learn.em/py_api.html#bob.learn.em.GMMMachine.set_variance_thresholds).Tiago de Freitas PereiraTiago de Freitas Pereira2017-01-03https://gitlab.idiap.ch/bob/bob.pad.face/-/issues/31Nightlies failing2019-05-02T13:47:44ZTiago de Freitas PereiraNightlies failingHi,
Can someone have a look please?
https://gitlab.idiap.ch/bob/bob.nightlies/-/jobs/163433
ThanksHi,
Can someone have a look please?
https://gitlab.idiap.ch/bob/bob.nightlies/-/jobs/163433
Thankshttps://gitlab.idiap.ch/bob/bob.extension/-/issues/7The Travis build of this package depends on bob.blitz which depends on this one2019-04-26T10:52:12ZAndré AnjosThe Travis build of this package depends on bob.blitz which depends on this one*Created by: anjos*
It is a bit weird that, for testing this package, we require bob.blitz which, in turn, requires this one to be built. Would it be possible to untangle these things? This does not very well in all conditions (e.g. Con...*Created by: anjos*
It is a bit weird that, for testing this package, we require bob.blitz which, in turn, requires this one to be built. Would it be possible to untangle these things? This does not very well in all conditions (e.g. Conda builds)https://gitlab.idiap.ch/bob/bob.db.oulunpu/-/issues/3Nightlies failing2019-04-26T08:32:47ZTiago de Freitas PereiraNightlies failingHi,
Can someone have a look please?
https://gitlab.idiap.ch/bob/bob.nightlies/-/jobs/163433
ThanksHi,
Can someone have a look please?
https://gitlab.idiap.ch/bob/bob.nightlies/-/jobs/163433
Thankshttps://gitlab.idiap.ch/bob/bob.ip.tensorflow_extractor/-/issues/6Cannot understand why I get this error2019-04-24T07:25:46ZAmir MOHAMMADICannot understand why I get this error```
Exception ignored in: <bound method FaceNet.__del__ of <bob.project.swan.biometric_recognition.base_facenet_face_eyes.FaceNetExtractor object at 0x7fd9637b6358>>
Traceback (most recent call last):
File "/remote/idiap.svm/user.activ...```
Exception ignored in: <bound method FaceNet.__del__ of <bob.project.swan.biometric_recognition.base_facenet_face_eyes.FaceNetExtractor object at 0x7fd9637b6358>>
Traceback (most recent call last):
File "/remote/idiap.svm/user.active/amohammadi/git/deep/src/bob.ip.tensorflow_extractor/bob/ip/tensorflow_extractor/FaceNet.py", line 139, in __del__
TypeError: 'NoneType' object is not callable
```
@tiago.pereira do you have any idea?https://gitlab.idiap.ch/bob/bob.io.video/-/issues/13Does not work against ffmpeg 4.02019-04-23T16:26:59ZAmir MOHAMMADIDoes not work against ffmpeg 4.0Some tests fail when this package is compiled against ffmpeg 4.0:
```
======================================================================
ERROR: bob.io.video.test_codec.test_noise_format_mp4_codec_mpeg4
-------------------------------...Some tests fail when this package is compiled against ffmpeg 4.0:
```
======================================================================
ERROR: bob.io.video.test_codec.test_noise_format_mp4_codec_mpeg4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/miniconda/envs/video/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "bob.io.video/bob/io/video/test_codec.py", line 27, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "bob.io.video/bob/io/video/utils.py", line 148, in frameskip_detection
format=format, check=True)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avformat_write_header(filename=`/tmp/bobtest_ijdctrcp.mov') failed: cannot write header to output file for some reason - ffmpeg reports error -1163346256 == `Not yet implemented in FFmpeg, patches welcome''
======================================================================
ERROR: bob.io.video.test_codec.test_noise_format_mp4_codec_mpeg4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/miniconda/envs/video/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "bob.io.video/bob/io/video/test_codec.py", line 27, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "bob.io.video/bob/io/video/utils.py", line 111, in color_distortion
format=format, check=True)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avformat_write_header(filename=`/tmp/bobtest_oijcem1u.mov') failed: cannot write header to output file for some reason - ffmpeg reports error -1163346256 == `Not yet implemented in FFmpeg, patches welcome''
======================================================================
ERROR: bob.io.video.test_codec.test_noise_format_mp4_codec_mpeg4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/miniconda/envs/video/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "bob.io.video/bob/io/video/test_codec.py", line 27, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "bob.io.video/bob/io/video/utils.py", line 183, in quality_degradation
format=format, check=True)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avformat_write_header(filename=`/tmp/bobtest_fuxcg9dr.mov') failed: cannot write header to output file for some reason - ffmpeg reports error -1163346256 == `Not yet implemented in FFmpeg, patches welcome''
======================================================================
ERROR: bob.io.video.test_codec.test_noise_format_mp4_codec_mpeg4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/miniconda/envs/video/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "bob.io.video/bob/io/video/test_codec.py", line 27, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "bob.io.video/bob/io/video/utils.py", line 148, in frameskip_detection
format=format, check=True)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avformat_write_header(filename=`/tmp/bobtest_v7wykwsk.mov') failed: cannot write header to output file for some reason - ffmpeg reports error -1163346256 == `Not yet implemented in FFmpeg, patches welcome''
======================================================================
ERROR: bob.io.video.test_codec.test_noise_format_mp4_codec_mpeg4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/miniconda/envs/video/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "bob.io.video/bob/io/video/test_codec.py", line 27, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "bob.io.video/bob/io/video/utils.py", line 111, in color_distortion
format=format, check=True)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avformat_write_header(filename=`/tmp/bobtest_25keps__.mov') failed: cannot write header to output file for some reason - ffmpeg reports error -1163346256 == `Not yet implemented in FFmpeg, patches welcome''
======================================================================
ERROR: bob.io.video.test_codec.test_noise_format_mp4_codec_mpeg4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/miniconda/envs/video/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "bob.io.video/bob/io/video/test_codec.py", line 27, in check_format_codec
orig, framerate, encoded = function(shape, framerate, format, codec, fname)
File "bob.io.video/bob/io/video/utils.py", line 183, in quality_degradation
format=format, check=True)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avformat_write_header(filename=`/tmp/bobtest_st9p0d39.mov') failed: cannot write header to output file for some reason - ffmpeg reports error -1163346256 == `Not yet implemented in FFmpeg, patches welcome''
======================================================================
ERROR: bob.io.video.test_codec.test_user_video_format_mp4_codec_mpeg4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/miniconda/envs/video/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "bob.io.video/bob/io/video/test_codec.py", line 119, in check_user_video
codec=codec, format=format, check=True)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avformat_write_header(filename=`/tmp/bobtest_6xbll0aj.mov') failed: cannot write header to output file for some reason - ffmpeg reports error -1163346256 == `Not yet implemented in FFmpeg, patches welcome''
======================================================================
ERROR: bob.io.video.test_codec.test_user_video_format_mp4_codec_mpeg4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/miniconda/envs/video/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "bob.io.video/bob/io/video/test_codec.py", line 119, in check_user_video
codec=codec, format=format, check=True)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avformat_write_header(filename=`/tmp/bobtest_brdqwnim.mov') failed: cannot write header to output file for some reason - ffmpeg reports error -1163346256 == `Not yet implemented in FFmpeg, patches welcome''
r_video_format_mp4_codec_mpeg4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/amir/miniconda/envs/video/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/amir/idiap/git/bobs/bob.io.video/bob/io/video/test_codec.py", line 119, in check_user_video
codec=codec, format=format, check=True)
RuntimeError: writer - constructor: C++ exception caught: 'bob::io::video::avformat_write_header(filename=`/tmp/bobtest_brdqwnim.mov') failed: cannot write header to output file for some reason - ffmpeg reports error -1163346256 == `Not yet implemented in FFmpeg, patches welcome''
```Amir MOHAMMADIAmir MOHAMMADIhttps://gitlab.idiap.ch/bob/bob/-/issues/189bob.ip.VLDSIFT doesn't extract feature every time2019-04-19T22:41:25ZAndré Anjosbob.ip.VLDSIFT doesn't extract feature every time*Created by: zongyuange*
Hi,
I have encountered a problem for this function. When I setup a feature extractor as:
im = bob.io.load('10.jpg');
im_r = im[0,:,:];
im_g = im[1,:,:];
sift_ex = bob.ip.VLDSIFT(309,372,1,3); # 309 and 3...*Created by: zongyuange*
Hi,
I have encountered a problem for this function. When I setup a feature extractor as:
im = bob.io.load('10.jpg');
im_r = im[0,:,:];
im_g = im[1,:,:];
sift_ex = bob.ip.VLDSIFT(309,372,1,3); # 309 and 372 is the image height and width
sift_r = sift_ex(numpy.float32(im_r));
sift_g = sift_ex(numpy.float32(im_g));
Then I will find sift_g value starts from [28000:end] all equals to zero. If you apply this sift feature extractor to im_r again, same thing happened to sift_r. I have attached the image for you to have a look. Thanks!
![10](https://cloud.githubusercontent.com/assets/5070099/2778241/f7c6e980-caef-11e3-8d93-0eaa8a851e13.jpg)
https://gitlab.idiap.ch/bob/bob/-/issues/186bob.sp.extrapolateNearest is doggy2019-04-19T22:41:25ZAndré Anjosbob.sp.extrapolateNearest is doggy*Created by: pedrotome*
It can't handle the following array properly:
```python
A33_bug = numpy.array([[0., 1, 2], [3, 4, 5], [6, 7, 8]])
```
It should return
```python
A33_bug_nearest = numpy.array([[0., 1, 2, 2], [3, 4, ...*Created by: pedrotome*
It can't handle the following array properly:
```python
A33_bug = numpy.array([[0., 1, 2], [3, 4, 5], [6, 7, 8]])
```
It should return
```python
A33_bug_nearest = numpy.array([[0., 1, 2, 2], [3, 4, 5, 5], [6, 7, 8, 8], [6, 7, 8, 8]])
```
but return
```python
A33_bug_nearest = numpy.array([[0., 1, 2, 2], [3, 4, 5, 5], [6, 7, 8, 8], [8, 8, 8, 8]])
```https://gitlab.idiap.ch/bob/bob/-/issues/183-DWITH_PERFTOOLS option does not work2019-04-19T22:41:25ZAndré Anjos-DWITH_PERFTOOLS option does not work*Created by: laurentes*
It seems that this option does not work anymore on the master branch.
I don't know yet if this also affect the 1.2 branch.
The problems seems to be caused by the use of WITH_PERFTOOLS as a C-like defined vari...*Created by: laurentes*
It seems that this option does not work anymore on the master branch.
I don't know yet if this also affect the 1.2 branch.
The problems seems to be caused by the use of WITH_PERFTOOLS as a C-like defined variable, whereas this is initially a cmake variable.
The easiest solution is to perform the inclusion check at the cmake level rather than by the C preprocessor. A good example is what was done for libsvm.v2.0https://gitlab.idiap.ch/bob/bob/-/issues/172Multi-class SVM: predict_class_and_scores is failing2019-04-19T22:41:25ZAndré AnjosMulti-class SVM: predict_class_and_scores is failing*Created by: khoury*
The function "predict_class_and_scores" in the SVM Machine is failing for Multi-Class SVM (segmentation fault) while you iterate over many probes. However, "predict class" alone is working fine.
(https://github.c...*Created by: khoury*
The function "predict_class_and_scores" in the SVM Machine is failing for Multi-Class SVM (segmentation fault) while you iterate over many probes. However, "predict class" alone is working fine.
(https://github.com/idiap/bob/blob/master/src/machine/python/svm.cc)
This is not working:
```python
import bob
machine=bob.machine.SupportVector(bob.io.HDF5File('svm.hdf5'))
probe = bob.io.load('probe.hdf5').flatten()
cl, score = machine.predict_class_and_scores(probe)
cl, score = machine.predict_class_and_scores(probe)
```
However, this one is working:
```python
import bob
machine=bob.machine.SupportVector(bob.io.HDF5File('svm.hdf5'))
probe = bob.io.load('probe.hdf5').flatten()
cl = machine.predict_class(probe)
cl = machine.predict_class(probe)
```
To reproduce the error, you can find the SVM machine [here] (http://www.elie-khoury.fr/svm.hdf5), and a probe file [here] (http://www.elie-khoury.fr/probe.hdf5).
Thanks,https://gitlab.idiap.ch/bob/bob/-/issues/173bob.io.load('image.jpg') crashes when image.jpg is not in JPEG format2019-04-19T22:41:24ZAndré Anjosbob.io.load('image.jpg') crashes when image.jpg is not in JPEG format*Created by: siebenkopf*
When I try to load an image file with filename extension '.jpg' using bob.io.load, where the image itself is *not* encoded as JPEG (in this case it is actually a .bmp file) , the program writes:
> Not a JPEG ...*Created by: siebenkopf*
When I try to load an image file with filename extension '.jpg' using bob.io.load, where the image itself is *not* encoded as JPEG (in this case it is actually a .bmp file) , the program writes:
> Not a JPEG file: starts with 0x42 0x4d
and exits.
It seems the JPEG error handling is not implemented properly.https://gitlab.idiap.ch/bob/bob/-/issues/170mincllr calibration code crashing with list index out of range2019-04-19T22:41:24ZAndré Anjosmincllr calibration code crashing with list index out of range*Created by: khoury*
In the file python/bob/measure/calibration.py, when the `p` list index of the list `pos` reached the value `P` (length of the `pos` list), the conditional test
```python
if n == N or neg[n] > pos[p]:
```
will ...*Created by: khoury*
In the file python/bob/measure/calibration.py, when the `p` list index of the list `pos` reached the value `P` (length of the `pos` list), the conditional test
```python
if n == N or neg[n] > pos[p]:
```
will crash as follows:
```python
Traceback (most recent call last):
...
min_cllr = bob.measure.calibration.min_cllr(scores_dev[i][0], scores_dev[i][1])
File "/usr/lib/python2.7/site-packages/bob/measure/calibration.py", line 51, in min_cllr
if (n == N or neg[n] > pos[p]):
IndexError: list index out of range
```
A solution seems to be:
```python
if not (p == P) and (n == N or neg[n] > pos[p]):
```v2.0https://gitlab.idiap.ch/bob/bob/-/issues/167PLDA machine save and load problem2019-04-19T22:41:24ZAndré AnjosPLDA machine save and load problem*Created by: zongyuange*
Hi Laurent,
It is me again. I have found an issue with PLDA machine.
After a bob.machine.PLDAMachine is trained, I saved it with
save_file = bob.io.HDF5File('/home/test.hdf5','w');
plda_machine.save(sa...*Created by: zongyuange*
Hi Laurent,
It is me again. I have found an issue with PLDA machine.
After a bob.machine.PLDAMachine is trained, I saved it with
save_file = bob.io.HDF5File('/home/test.hdf5','w');
plda_machine.save(save_file)
when I am trying to load it again with
file = bob.io.HDF5File('/home/test.hdf5','r');
plda = bob.machine.PLDAMachine();
plda.load(file)
Then I typed the command
'plda.dim_d '
will cause segmentation error.
You can try it with the any example.
Thanks,
Rehards,
ZongYuan
v2.0https://gitlab.idiap.ch/bob/bob/-/issues/159PNG codec does not support image with indexed color2019-04-19T22:41:24ZAndré AnjosPNG codec does not support image with indexed color*Created by: matthiass2*
Given the attached PNG image with indexed color, the bob codec can't read it when using bob 1.2.0:
![image](https://f.cloud.github.com/assets/5189100/960468/362936be-04b8-11e3-8c57-18b69b4ee351.png)
```pyt...*Created by: matthiass2*
Given the attached PNG image with indexed color, the bob codec can't read it when using bob 1.2.0:
![image](https://f.cloud.github.com/assets/5189100/960468/362936be-04b8-11e3-8c57-18b69b4ee351.png)
```python
import bob
img=bob.io.load('image.png')
```
The error message is:
"RuntimeError: png codec does not support images with color spaces different than GRAY or RGB"v2.0