run error: ValueError: Incorrect number of features. Got 128 features, expected 384 · Issue #21 · bakwc/PornDetector · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
files = ['./00002.jpg']
pcr = PCR()
pcr.loadModel('model.bin')
pred = pcr.predict(files)
error occured. Can you help me?
Traceback (most recent call last):
File "test_case.py", line 16, in
test()
File "test_case.py", line 12, in test
pred = pcr.predict(files)
File "./PornDetector/pcr.py", line 122, in predict
clusters = self._kmeans.predict(totalDescriptors)
File "/home/work/miniconda2/envs/lab_v2/lib/python3.6/site-packages/sklearn/cluster/k_means.py", line 1358, in predict
X = self.check_test_data(X)
File "/home/work/miniconda2/envs/lab_v2/lib/python3.6/site-packages/sklearn/cluster/k_means.py", line 704, in _check_test_data
n_features, expected_n_features))
ValueError: Incorrect number of features. Got 128 features, expected 384
The text was updated successfully, but these errors were encountered:
michaelzph
changed the title
run err: IndexError: list index out of range
run error: ValueError: Incorrect number of features. Got 128 features, expected 384
Jun 6, 2020
when I run the script:
error occured. Can you help me?
Traceback (most recent call last):
File "test_case.py", line 16, in
test()
File "test_case.py", line 12, in test
pred = pcr.predict(files)
File "./PornDetector/pcr.py", line 122, in predict
clusters = self._kmeans.predict(totalDescriptors)
File "/home/work/miniconda2/envs/lab_v2/lib/python3.6/site-packages/sklearn/cluster/k_means.py", line 1358, in predict
X = self.check_test_data(X)
File "/home/work/miniconda2/envs/lab_v2/lib/python3.6/site-packages/sklearn/cluster/k_means.py", line 704, in _check_test_data
n_features, expected_n_features))
ValueError: Incorrect number of features. Got 128 features, expected 384
The text was updated successfully, but these errors were encountered: