Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feature_extractor_test #118

Open
ucsky opened this issue Dec 11, 2019 · 2 comments
Open

feature_extractor_test #118

ucsky opened this issue Dec 11, 2019 · 2 comments

Comments

@ucsky
Copy link

ucsky commented Dec 11, 2019

Hi,
When I try to run python feature_extractor_test.py I got the following error:

feature_extractor_test.py:44: ResourceWarning: unclosed file <_io.TextIOWrapper\
 name='testdata/sports1m_frame.pkl' mode='r' encoding='UTF-8'>
  sports_1m_test_data = cPickle.load(open(_FilePath('sports1m_frame.pkl')))
[  FAILED  ] FeatureExtractorTest.testPCAOnFeatureVector
======================================================================
ERROR: testPCAOnFeatureVector (__main__.FeatureExtractorTest)
testPCAOnFeatureVector (__main__.FeatureExtractorTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "feature_extractor_test.py", line 44, in testPCAOnFeatureVector
    sports_1m_test_data = cPickle.load(open(_FilePath('sports1m_frame.pkl')))
TypeError: a bytes-like object is required, not 'str'

----------------------------------------------------------------------
Ran 1 test in 0.854s

Please is somebody known what is going on?

@LeegleechN
Copy link
Collaborator

LeegleechN commented Dec 11, 2019

I haven't looked into it myself but this looks like a Python 2/3 incompatibility. If you're using Python 2 try 3, and vice-versa.

@xiaoluobu
Copy link

Hi,
@LeegleechN @ucsky
Could you please tell me what dataset did you use?
I tried to train this code using google audioset, but it seems to be failed.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants