Python bob包API-如何格式化输入数据
我正在尝试使用bob软件包,它是用Conda安装在我的ubuntu上的;但是,当使用任何度量API(如Python bob包API-如何格式化输入数据,python,python-3.x,conda,biometrics,python-bob,Python,Python 3.x,Conda,Biometrics,Python Bob,我正在尝试使用bob软件包,它是用Conda安装在我的ubuntu上的;但是,当使用任何度量API(如bob.measure.eer\u阈值)时,会出现以下错误。我已经准备了1D数组中的数据,但错误仍然存在。我还尝试将纯1D数组传递给函数,但它不起作用。错误: Traceback (most recent call last): File "Test_bob.py", line 29, in <module> threshold = bob.measure.eer_thresho
bob.measure.eer\u阈值)时,会出现以下错误。我已经准备了1D数组中的数据,但错误仍然存在。我还尝试将纯1D数组传递给函数,但它不起作用。错误:
Traceback (most recent call last): File "Test_bob.py", line 29, in <module>
threshold = bob.measure.eer_threshold(negatives, positives) ValueError: cannot convert `numpy.ndarray' which doesn't behave (memory contiguous, aligned, C-style, minimum 1 and up to 4 dimensions) into a `bob.blitz.array'
这是正版.txt
文件:
8873
2601
2554
11872
3867
4048
6983
3833
3988
5321
2761
2139
8498
2719
3128
3790
2937
2394
以及Impostor.txt
:
2941
3486
4051
3416
2176
2222
1758
1856
2283
3491
3248
3159
4027
1300
2102
1437
1420
1776
4025
3888
2522
3557
请帮助我如何格式化和准备此类bob API方法的数据。该方法使用1D浮点数数组,但实际上是以字符串形式读取数据。此外,您不必自己实现数据加载,例如,您可以使用来完成此操作。非常感谢。你是对的,我已经将加载的数据更改为float list,这很有效。
2941
3486
4051
3416
2176
2222
1758
1856
2283
3491
3248
3159
4027
1300
2102
1437
1420
1776
4025
3888
2522
3557