bob issueshttps://gitlab.idiap.ch/bob/bob/-/issues2019-07-16T14:50:50Zhttps://gitlab.idiap.ch/bob/bob/-/issues/202when I run ./bin/buildout, encounter errors2019-07-16T14:50:50ZAndré Anjoswhen I run ./bin/buildout, encounter errors*Created by: xuzhenqi*
pris@pris-All-Series:~/development/bob$ ./bin/buildout
Develop: '/home/pris/development/bob/layers/0/bob.buildout'
Traceback (most recent call last):
File "/tmp/tmpeiOSwz", line 14, in <module>
exec(com...*Created by: xuzhenqi*
pris@pris-All-Series:~/development/bob$ ./bin/buildout
Develop: '/home/pris/development/bob/layers/0/bob.buildout'
Traceback (most recent call last):
File "/tmp/tmpeiOSwz", line 14, in <module>
exec(compile(open('/home/pris/development/bob/layers/0/bob.buildout/setup.py').read(), '/home/pris/development/bob/layers/0/bob.buildout/setup.py', 'exec'))
IOError: [Errno 2] No such file or directory: '/home/pris/development/bob/layers/0/bob.buildout/setup.py'
While:
Installing.
Processing develop directory '/home/pris/development/bob/layers/0/bob.buildout'.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/home/pris/development/bob/eggs/zc.buildout-2.3.1-py2.7.egg/zc/buildout/buildout.py", line 1946, in main
getattr(buildout, command)(args)
File "/home/pris/development/bob/eggs/zc.buildout-2.3.1-py2.7.egg/zc/buildout/buildout.py", line 488, in install
installed_develop_eggs = self._develop()
File "/home/pris/development/bob/eggs/zc.buildout-2.3.1-py2.7.egg/zc/buildout/buildout.py", line 730, in _develop
zc.buildout.easy_install.develop(setup, dest)
File "/home/pris/development/bob/eggs/bob.buildout-2.0.6-py2.7.egg/bob/buildout/extension.py", line 212, in develop
zc.buildout.easy_install.call_subprocess(args)
File "/home/pris/development/bob/eggs/zc.buildout-2.3.1-py2.7.egg/zc/buildout/easy_install.py", line 159, in call_subprocess
% repr(args)[1:-1])
Exception: Failed to run command:
'/usr/bin/python', '/tmp/tmpeiOSwz', '-v', 'develop', '-mxN', '-d', '/home/pris/development/bob/develop-eggs/tmprqYAaxbuild'
https://gitlab.idiap.ch/bob/bob/-/issues/198Cython dependency2019-07-16T14:50:50ZAndré AnjosCython dependency*Created by: Zeeno-atl*
Bob.io.base has dependency not only on HDF5, but also on h5py, which has dependency on Cython.
I was unable to install bob.io.base and all packages that depend on it using easy_install, pip or zc.buildout . Th...*Created by: Zeeno-atl*
Bob.io.base has dependency not only on HDF5, but also on h5py, which has dependency on Cython.
I was unable to install bob.io.base and all packages that depend on it using easy_install, pip or zc.buildout . This dependency is not listed in https://github.com/idiap/bob/wiki/Dependencies in the required software section, nor in the shell command for installing.https://gitlab.idiap.ch/bob/bob/-/issues/196Install Bob v2.0 on Ubuntu 14.04LTS ?2019-07-16T14:50:50ZAndré AnjosInstall Bob v2.0 on Ubuntu 14.04LTS ?*Created by: bzsy*
Hi,
I have read the paper \<Bob: A Free Signal Processing and Machine Learning Toolbox for Researchers\>, and I am interested in it. But when I install this toolbox by myself, there is an problem. The problem is de...*Created by: bzsy*
Hi,
I have read the paper \<Bob: A Free Signal Processing and Machine Learning Toolbox for Researchers\>, and I am interested in it. But when I install this toolbox by myself, there is an problem. The problem is described as follow:
* Install Bob v2.0 on Ubuntu 14.04LTS
* All external dependencies are installed. (https://github.com/idiap/bob/wiki/Dependencies)
* In the process of intalling, I got a cue that the version of setuptools is too low,
so I install setuptools v8.3 (https://pypi.python.org/pypi/setuptools)
* In Python 2.7.6 and Python 3.4.0, when executing /bob-master/bin/buidout, the errors emerge :
```
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/home/ABC/bob-master/eggs/zc.buildout-2.3.1-py3.4.egg/zc/buildout/buildout.py", line 1946, in main
getattr(buildout, command)(args)
File "/home/ABC/bob-master/eggs/zc.buildout-2.3.1-py3.4.egg/zc/buildout/buildout.py", line 488, in install
installed_develop_eggs = self._develop()
File "/home/ABC/bob-master/eggs/zc.buildout-2.3.1-py3.4.egg/zc/buildout/buildout.py", line 730, in _develop
zc.buildout.easy_install.develop(setup, dest)
File "/home/ABC/bob-master/eggs/bob.buildout-2.0.1-py3.4.egg/bob/buildout/extension.py", line 212, in develop
zc.buildout.easy_install.call_subprocess(args)
File "/home/ABC/bob-master/eggs/zc.buildout-2.3.1-py3.4.egg/zc/buildout/easy_install.py", line 159, in call_subprocess
% repr(args)[1:-1])
Exception: Failed to run command:
'/usr/bin/python3', '/tmp/tmp5v2u3945', '-v', 'develop', '-mxN', '-d', '/home/ABC/bob-master/develop-eggs/tmpjdlacslcbuild'
```
THX a lot.https://gitlab.idiap.ch/bob/bob/-/issues/163ML_GMMTrainer and MAP_GMMTrainer documentation do not show defaults2019-07-16T14:50:50ZAndré AnjosML_GMMTrainer and MAP_GMMTrainer documentation do not show defaults*Created by: anjos*
This should be an easy fix on the bindings. Please make sure to correctly place the defaults for the input parameters there. As of today, these are not displayed:
http://www.idiap.ch/software/bob/docs/nightlies/la...*Created by: anjos*
This should be an easy fix on the bindings. Please make sure to correctly place the defaults for the input parameters there. As of today, these are not displayed:
http://www.idiap.ch/software/bob/docs/nightlies/last/bob/sphinx/html/trainer/generated/bob.trainer.ML_GMMTrainer.html?highlight=gmmtrainer#bob.trainer.ML_GMMTrainer
http://www.idiap.ch/software/bob/docs/nightlies/last/bob/sphinx/html/trainer/generated/bob.trainer.MAP_GMMTrainer.html?highlight=gmmtrainer#bob.trainer.MAP_GMMTrainer
Furthermore, it would be interesting to have somewhere the defaults for the inherited classes as well, such as, for example, the EMTrainer.max_iterations parameter. Finding the default (which is 10) can be a daunting quest for any person.v2.0https://gitlab.idiap.ch/bob/bob/-/issues/161IP Scaling functionality far from optimal2019-07-16T14:50:50ZAndré AnjosIP Scaling functionality far from optimal*Created by: anjos*
The documentation and workflow of `bob.ip.scale` and `bob.ip.scale_as` as pretty bad as they currently stand.
1. If I read the doc of `scale_as`, I get the impression it will scale the input image, but actually it...*Created by: anjos*
The documentation and workflow of `bob.ip.scale` and `bob.ip.scale_as` as pretty bad as they currently stand.
1. If I read the doc of `scale_as`, I get the impression it will scale the input image, but actually it just generates a container for one.
2. The doc of `scale` does not precise the types of inputs it can handle, nor the type it outputs.
3. There is no easy handle to scale an image and return a freshly allocated container. I currently have to pass through `scale_as` to get a container and then be able to call `scale`.v2.0https://gitlab.idiap.ch/bob/bob/-/issues/130Bob misses a Covariance-based PCA trainer2019-07-16T14:50:50ZAndré AnjosBob misses a Covariance-based PCA trainer*Created by: anjos*
This should be relatively easy to implement and, as long as the number of training examples is greater than the number of features in each sample, it should produce faster results than the SVDPCATrainer. Memory-wise,...*Created by: anjos*
This should be relatively easy to implement and, as long as the number of training examples is greater than the number of features in each sample, it should produce faster results than the SVDPCATrainer. Memory-wise, it should be less efficient though.v1.2https://gitlab.idiap.ch/bob/bob/-/issues/111matplotlib.pyplot.imshow cannot display color images loaded by bob2019-07-16T14:50:50ZAndré Anjosmatplotlib.pyplot.imshow cannot display color images loaded by bob*Created by: siebenkopf*
It seems that the ways, color images are interpreted, differs between bob and matplotlib.
bob.io.load().shape on a color image gives
(3, height, width)
while matplotlib.image.imread().shape is
(height, width...*Created by: siebenkopf*
It seems that the ways, color images are interpreted, differs between bob and matplotlib.
bob.io.load().shape on a color image gives
(3, height, width)
while matplotlib.image.imread().shape is
(height, width, 3)
The consequence is that we cannot (easily) use matplotlib.pyplot.imshow() with images that are loaded by bob, and there is (to my knowledge) no (easy) conversion function between the two color handling types.https://gitlab.idiap.ch/bob/bob/-/issues/109libsvm 3.15 and 3.16 potential crash on svm_free_model_content()2019-07-16T14:50:50ZAndré Anjoslibsvm 3.15 and 3.16 potential crash on svm_free_model_content()*Created by: anjos*
The [following bug](https://trac.macports.org/ticket/37862) must be closed before we can properly release bob-1.2.0. The MacPort will be crippled without this.
The patch (to libsvm) is easy:
```patch
--- svm.c...*Created by: anjos*
The [following bug](https://trac.macports.org/ticket/37862) must be closed before we can properly release bob-1.2.0. The MacPort will be crippled without this.
The patch (to libsvm) is easy:
```patch
--- svm.cpp.orig 2013-01-31 12:03:51.000000000 +0100
+++ svm.cpp 2013-01-31 11:58:02.000000000 +0100
@@ -2747,6 +2747,7 @@
model->probB = NULL;
model->label = NULL;
model->nSV = NULL;
+ model->sv_indices = NULL;
char cmd[81];
while(1)
```
If you have problems using our libsvm bindings under MacPorts, please verify if you are not using one of the two versions of libsvm indicated in this bug report. If so, downgrade it to 3.14. or re-build it with the fix applied.
The author of libsvm has been informed of this problem and also the MacPorts maintainer. Both received the same patch instructions.v1.2https://gitlab.idiap.ch/bob/bob/-/issues/257New Release - Bob - 6.0.02019-07-01T13:25:38ZTiago de Freitas PereiraNew Release - Bob - 6.0.0Nightlies are green;
https://gitlab.idiap.ch/bob/bob.nightlies/pipelines
Shall we consider a new release?Nightlies are green;
https://gitlab.idiap.ch/bob/bob.nightlies/pipelines
Shall we consider a new release?https://gitlab.idiap.ch/bob/bob/-/issues/82No Windows port2019-06-24T13:44:12ZAndré AnjosNo Windows port*Created by: anjos*
Currently, we have no Windows port of Bob. This is a major problem as most researchers still use Windows. Let's put here information on how to create one and close this once a port is available.
Current status:
> T...*Created by: anjos*
Currently, we have no Windows port of Bob. This is a major problem as most researchers still use Windows. Let's put here information on how to create one and close this once a port is available.
Current status:
> The most promising solution for a *quicker* porting is to use [cygwin](http://www.cygwin.com/).v2.0https://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/-/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.0https://gitlab.idiap.ch/bob/bob/-/issues/156Build should fail if pkg-config is not installed2019-04-19T22:41:24ZAndré AnjosBuild should fail if pkg-config is not installed*Created by: anjos*
The build should fail if CMake cannot find pkg-config:
```
-- Bob version '1.2.0' (macosx-x86_64-release)
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE
```*Created by: anjos*
The build should fail if CMake cannot find pkg-config:
```
-- Bob version '1.2.0' (macosx-x86_64-release)
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE
```v2.0