-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
I am trying to build the latest version of audiomate for openSUSE Linux and I am getting the following errors on 32bit builds but not 64bit ones:
=================================== FAILURES ===================================
_____ TestMultiFrameIterator.test_next_emits_all_features_in_random_order ______
self = <tests.feeding.test_iterator.TestMultiFrameIterator object at 0x96eea60c>
tmpdir = local('/tmp/pytest-of-abuild/pytest-0/test_next_emits_all_features_i1')
def test_next_emits_all_features_in_random_order(self, tmpdir):
ds1 = np.array([[0.1, 0.1, 0.1, 0.1, 0.1], [0.2, 0.2, 0.2, 0.2, 0.2]])
ds2 = np.array([[0.3, 0.3, 0.3, 0.3, 0.3], [0.4, 0.4, 0.4, 0.4, 0.4], [0.5, 0.5, 0.5, 0.5, 0.5]])
ds3 = np.array([[0.6, 0.6, 0.6, 0.6, 0.6]])
file_path = os.path.join(tmpdir.strpath, 'features.h5')
cont = containers.Container(file_path)
cont.open()
cont.set('utt-1', ds1)
cont.set('utt-2', ds2)
cont.set('utt-3', ds3)
frames = tuple(iterator.MultiFrameIterator(['utt-1', 'utt-2', 'utt-3'], [cont], 120, 2, shuffle=True, seed=6))
assert 4 == len(frames)
> assert np.allclose(([[0.5, 0.5, 0.5, 0.5, 0.5]]), frames[0][0])
E assert False
E + where False = <function allclose at 0xb5d0c41c>([[0.5, 0.5, 0.5, 0.5, 0.5]], array([[0.1, 0.1, 0.1, 0.1, 0.1],\n [0.2, 0.2, 0.2, 0.2, 0.2]], dtype=float32))
E + where <function allclose at 0xb5d0c41c> = np.allclose
tests/feeding/test_iterator.py:157: AssertionError
_ TestMultiFrameIterator.test_next_emits_features_only_from_included_ds_in_random_order _
self = <tests.feeding.test_iterator.TestMultiFrameIterator object at 0x96ef262c>
tmpdir = local('/tmp/pytest-of-abuild/pytest-0/test_next_emits_features_only_1')
def test_next_emits_features_only_from_included_ds_in_random_order(self, tmpdir):
ds1 = np.array([[0.1, 0.1, 0.1, 0.1, 0.1], [0.2, 0.2, 0.2, 0.2, 0.2]])
ds2 = np.array([[0.3, 0.3, 0.3, 0.3, 0.3], [0.4, 0.4, 0.4, 0.4, 0.4], [0.5, 0.5, 0.5, 0.5, 0.5]])
ds3 = np.array([[0.6, 0.6, 0.6, 0.6, 0.6], [0.7, 0.7, 0.7, 0.7, 0.7]])
file_path = os.path.join(tmpdir.strpath, 'features.h5')
cont = containers.Container(file_path)
cont.open()
cont.set('utt-1', ds1)
cont.set('utt-2', ds2)
cont.set('utt-3', ds3)
frames = tuple(iterator.MultiFrameIterator(['utt-1', 'utt-3'], [cont], 120, 2, shuffle=True, seed=1))
assert 2 == len(frames)
> assert np.allclose(([[0.6, 0.6, 0.6, 0.6, 0.6],
[0.7, 0.7, 0.7, 0.7, 0.7]]), frames[0][0])
E assert False
E + where False = <function allclose at 0xb5d0c41c>([[0.6, 0.6, 0.6, 0.6, 0.6], [0.7, 0.7, 0.7, 0.7, 0.7]], array([[0.1, 0.1, 0.1, 0.1, 0.1],\n [0.2, 0.2, 0.2, 0.2, 0.2]], dtype=float32))
E + where <function allclose at 0xb5d0c41c> = np.allclose
tests/feeding/test_iterator.py:198: AssertionError
_ TestMultiFrameIterator.test_next_emits_all_features_if_partition_spans_multiple_data_sets_in_random_order _
self = <tests.feeding.test_iterator.TestMultiFrameIterator object at 0x96ec356c>
tmpdir = local('/tmp/pytest-of-abuild/pytest-0/test_next_emits_all_features_i3')
def test_next_emits_all_features_if_partition_spans_multiple_data_sets_in_random_order(self, tmpdir):
ds1 = np.array([[0.1, 0.1, 0.1, 0.1, 0.1], [0.2, 0.2, 0.2, 0.2, 0.2]])
ds2 = np.array([[0.3, 0.3, 0.3, 0.3, 0.3], [0.4, 0.4, 0.4, 0.4, 0.4], [0.5, 0.5, 0.5, 0.5, 0.5]])
ds3 = np.array([[0.6, 0.6, 0.6, 0.6, 0.6], [0.7, 0.7, 0.7, 0.7, 0.7]])
file_path = os.path.join(tmpdir.strpath, 'features.h5')
cont = containers.Container(file_path)
cont.open()
cont.set('utt-1', ds1)
cont.set('utt-2', ds2)
cont.set('utt-3', ds3)
frames = tuple(iterator.MultiFrameIterator(['utt-1', 'utt-2', 'utt-3'], [cont], 240, 2, shuffle=True, seed=12))
assert 4 == len(frames)
assert np.allclose(([[0.5, 0.5, 0.5, 0.5, 0.5]]), frames[0][0])
> assert np.allclose(([[0.3, 0.3, 0.3, 0.3, 0.3],
[0.4, 0.4, 0.4, 0.4, 0.4]]), frames[1][0])
E assert False
E + where False = <function allclose at 0xb5d0c41c>([[0.3, 0.3, 0.3, 0.3, 0.3], [0.4, 0.4, 0.4, 0.4, 0.4]], array([[0.6, 0.6, 0.6, 0.6, 0.6],\n [0.7, 0.7, 0.7, 0.7, 0.7]], dtype=float32))
E + where <function allclose at 0xb5d0c41c> = np.allclose
tests/feeding/test_iterator.py:242: AssertionError
__________ TestMultiFrameIterator.test_next_emits_chunks_with_length ___________
self = <tests.feeding.test_iterator.TestMultiFrameIterator object at 0x96ec54cc>
tmpdir = local('/tmp/pytest-of-abuild/pytest-0/test_next_emits_chunks_with_le0')
def test_next_emits_chunks_with_length(self, tmpdir):
ds1 = np.array([[0.1, 0.1, 0.1, 0.1, 0.1], [0.2, 0.2, 0.2, 0.2, 0.2]])
ds2 = np.array([[0.3, 0.3, 0.3, 0.3, 0.3], [0.4, 0.4, 0.4, 0.4, 0.4], [0.5, 0.5, 0.5, 0.5, 0.5]])
ds3 = np.array([[0.6, 0.6, 0.6, 0.6, 0.6]])
file_path = os.path.join(tmpdir.strpath, 'features.h5')
cont = containers.Container(file_path)
cont.open()
cont.set('utt-1', ds1)
cont.set('utt-2', ds2)
cont.set('utt-3', ds3)
frames = tuple(iterator.MultiFrameIterator(['utt-1', 'utt-2', 'utt-3'], [cont], 120, 2, return_length=True,
shuffle=True, seed=6))
assert 4 == len(frames)
> assert np.allclose(([[0.5, 0.5, 0.5, 0.5, 0.5]]), frames[0][0])
E assert False
E + where False = <function allclose at 0xb5d0c41c>([[0.5, 0.5, 0.5, 0.5, 0.5]], array([[0.1, 0.1, 0.1, 0.1, 0.1],\n [0.2, 0.2, 0.2, 0.2, 0.2]], dtype=float32))
E + where <function allclose at 0xb5d0c41c> = np.allclose
tests/feeding/test_iterator.py:265: AssertionError
__________ TestMultiFrameIterator.test_next_emits_chunks_with_padding __________
self = <tests.feeding.test_iterator.TestMultiFrameIterator object at 0x96ee3c6c>
tmpdir = local('/tmp/pytest-of-abuild/pytest-0/test_next_emits_chunks_with_pa0')
def test_next_emits_chunks_with_padding(self, tmpdir):
ds1 = np.array([[0.1, 0.1, 0.1, 0.1, 0.1], [0.2, 0.2, 0.2, 0.2, 0.2]])
ds2 = np.array([[0.3, 0.3, 0.3, 0.3, 0.3], [0.4, 0.4, 0.4, 0.4, 0.4], [0.5, 0.5, 0.5, 0.5, 0.5]])
ds3 = np.array([[0.6, 0.6, 0.6, 0.6, 0.6]])
file_path = os.path.join(tmpdir.strpath, 'features.h5')
cont = containers.Container(file_path)
cont.open()
cont.set('utt-1', ds1)
cont.set('utt-2', ds2)
cont.set('utt-3', ds3)
frames = tuple(iterator.MultiFrameIterator(['utt-1', 'utt-2', 'utt-3'], [cont], 120, 2, pad=True,
shuffle=True, seed=6))
assert 4 == len(frames)
> assert np.allclose(([[0.5, 0.5, 0.5, 0.5, 0.5],
[0.0, 0.0, 0.0, 0.0, 0.0]]), frames[0][0])
E assert False
E + where False = <function allclose at 0xb5d0c41c>([[0.5, 0.5, 0.5, 0.5, 0.5], [0.0, 0.0, 0.0, 0.0, 0.0]], array([[0.1, 0.1, 0.1, 0.1, 0.1],\n [0.2, 0.2, 0.2, 0.2, 0.2]], dtype=float32))
E + where <function allclose at 0xb5d0c41c> = np.allclose
tests/feeding/test_iterator.py:293: AssertionError
________ TestFrameIterator.test_next_emits_all_features_in_random_order ________
self = <tests.feeding.test_iterator.TestFrameIterator object at 0x96eedeec>
tmpdir = local('/tmp/pytest-of-abuild/pytest-0/test_next_emits_all_features_i5')
def test_next_emits_all_features_in_random_order(self, tmpdir):
ds1 = np.array([[0.1, 0.1, 0.1, 0.1, 0.1], [0.2, 0.2, 0.2, 0.2, 0.2]])
ds2 = np.array([[0.3, 0.3, 0.3, 0.3, 0.3], [0.4, 0.4, 0.4, 0.4, 0.4], [0.5, 0.5, 0.5, 0.5, 0.5]])
ds3 = np.array([[0.6, 0.6, 0.6, 0.6, 0.6]])
file_path = os.path.join(tmpdir.strpath, 'features.h5')
cont = containers.Container(file_path)
cont.open()
cont.set('utt-1', ds1)
cont.set('utt-2', ds2)
cont.set('utt-3', ds3)
frames = tuple(iterator.FrameIterator(['utt-1', 'utt-2', 'utt-3'], [cont], 120, shuffle=True, seed=136))
assert 6 == len(frames)
assert np.allclose(([0.6, 0.6, 0.6, 0.6, 0.6]), frames[0][0])
> assert np.allclose(([0.1, 0.1, 0.1, 0.1, 0.1]), frames[1][0])
E assert False
E + where False = <function allclose at 0xb5d0c41c>([0.1, 0.1, 0.1, 0.1, 0.1], array([0.3, 0.3, 0.3, 0.3, 0.3], dtype=float32))
E + where <function allclose at 0xb5d0c41c> = np.allclose
tests/feeding/test_iterator.py:361: AssertionError
_ TestFrameIterator.test_next_emits_features_only_from_included_ds_in_random_order _
self = <tests.feeding.test_iterator.TestFrameIterator object at 0x96f322ec>
tmpdir = local('/tmp/pytest-of-abuild/pytest-0/test_next_emits_features_only_3')
def test_next_emits_features_only_from_included_ds_in_random_order(self, tmpdir):
ds1 = np.array([[0.1, 0.1, 0.1, 0.1, 0.1], [0.2, 0.2, 0.2, 0.2, 0.2]])
ds2 = np.array([[0.3, 0.3, 0.3, 0.3, 0.3], [0.4, 0.4, 0.4, 0.4, 0.4], [0.5, 0.5, 0.5, 0.5, 0.5]])
ds3 = np.array([[0.6, 0.6, 0.6, 0.6, 0.6], [0.7, 0.7, 0.7, 0.7, 0.7]])
file_path = os.path.join(tmpdir.strpath, 'features.h5')
cont = containers.Container(file_path)
cont.open()
cont.set('utt-1', ds1)
cont.set('utt-2', ds2)
cont.set('utt-3', ds3)
frames = tuple(iterator.FrameIterator(['utt-1', 'utt-3'], [cont], 120, shuffle=True, seed=1236))
assert 4 == len(frames)
> assert np.allclose(([0.1, 0.1, 0.1, 0.1, 0.1]), frames[0][0])
E assert False
E + where False = <function allclose at 0xb5d0c41c>([0.1, 0.1, 0.1, 0.1, 0.1], array([0.7, 0.7, 0.7, 0.7, 0.7], dtype=float32))
E + where <function allclose at 0xb5d0c41c> = np.allclose
tests/feeding/test_iterator.py:402: AssertionError
_ TestFrameIterator.test_next_emits_all_features_if_partition_spans_multiple_data_sets_in_random_order _
self = <tests.feeding.test_iterator.TestFrameIterator object at 0xa8746f8c>
tmpdir = local('/tmp/pytest-of-abuild/pytest-0/test_next_emits_all_features_i7')
def test_next_emits_all_features_if_partition_spans_multiple_data_sets_in_random_order(self, tmpdir):
ds1 = np.array([[0.1, 0.1, 0.1, 0.1, 0.1], [0.2, 0.2, 0.2, 0.2, 0.2]])
ds2 = np.array([[0.3, 0.3, 0.3, 0.3, 0.3], [0.4, 0.4, 0.4, 0.4, 0.4], [0.5, 0.5, 0.5, 0.5, 0.5]])
ds3 = np.array([[0.6, 0.6, 0.6, 0.6, 0.6], [0.7, 0.7, 0.7, 0.7, 0.7]])
file_path = os.path.join(tmpdir.strpath, 'features.h5')
cont = containers.Container(file_path)
cont.open()
cont.set('utt-1', ds1)
cont.set('utt-2', ds2)
cont.set('utt-3', ds3)
frames = tuple(iterator.FrameIterator(['utt-1', 'utt-2', 'utt-3'], [cont], 240, shuffle=True, seed=333))
assert 7 == len(frames)
> assert np.allclose(([0.5, 0.5, 0.5, 0.5, 0.5]), frames[0][0])
E assert False
E + where False = <function allclose at 0xb5d0c41c>([0.5, 0.5, 0.5, 0.5, 0.5], array([0.6, 0.6, 0.6, 0.6, 0.6], dtype=float32))
E + where <function allclose at 0xb5d0c41c> = np.allclose
tests/feeding/test_iterator.py:445: AssertionError
Reactions are currently unavailable