Hello, i got a problem while running ch7_searchdemo.py :
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/Library/Python/2.7/site-packages/cherrypy/lib/encoding.py", line 221, in call
self.body = self.oldhandler(*args, kwargs)
File "/Library/Python/2.7/site-packages/cherrypy/_cpdispatch.py", line 60, in call
return self.callable(*self.args, *self.kwargs)
File "demo.py", line 53, in index
res = self.src.query(query)[:self.maxres]
File "/Applications/Recherche/PCV-master/build/lib/PCV/imagesearch/imagesearch.py", line 136, in query
cand_dist = sqrt( sum( self.voc.idf(h-cand_h)2 ) )
ValueError: operands could not be broadcast together with shapes (993,) (991,)
I know that mean the "h" and the cand_h histogram can't be subtracted but i know why ?
Hello, i got a problem while running ch7_searchdemo.py :
Traceback (most recent call last): File "/Library/Python/2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond response.body = self.handler() File "/Library/Python/2.7/site-packages/cherrypy/lib/encoding.py", line 221, in call self.body = self.oldhandler(*args, kwargs) File "/Library/Python/2.7/site-packages/cherrypy/_cpdispatch.py", line 60, in call return self.callable(*self.args, *self.kwargs) File "demo.py", line 53, in index res = self.src.query(query)[:self.maxres] File "/Applications/Recherche/PCV-master/build/lib/PCV/imagesearch/imagesearch.py", line 136, in query cand_dist = sqrt( sum( self.voc.idf(h-cand_h)2 ) ) ValueError: operands could not be broadcast together with shapes (993,) (991,)
I know that mean the "h" and the cand_h histogram can't be subtracted but i know why ?
(i am using the ukbench dataset)