Comments (7)
Covert "vocab" into 2d array. Instead of "self.bov_helper.scale.transform(vocab)" try "self.bov_helper.scale.transform(np.atleast_2d(vocab)) ". Also "import numpy as np" before this step.
this helped
from bag-of-visual-words-python.
I have the same error. But I am unable to solve it by following your suggestion. I replaced line 89 in Bag.py to vocab = self.bov_helper.scale.transform(np.atleast_2d(vocab)) as directed by you. I am still getting the same error. Can you please help me with this ?
from bag-of-visual-words-python.
Same issue here (using Python 3.5.4).. Tried the suggestion by @masonreznov but still giving the same error
from bag-of-visual-words-python.
I have the same error. But I am unable to solve it by following your suggestion. I replaced line 89 in Bag.py to vocab = self.bov_helper.scale.transform(np.atleast_2d(vocab)) as directed by you. I am still getting the same error. Can you please help me with this ?
change Line 140 from word = each.split("/")[-1] to ' \ ' (Slash )
from bag-of-visual-words-python.
After I change Line 140 from word = each.split("/")[-1] to ' \ ' and convert self.bov_helper.scale.transform(np.atleast_2d(vocab)) I
still not out of error
from bag-of-visual-words-python.
After I change Line 140 from word = each.split("/")[-1] to ' \ ' and convert self.bov_helper.scale.transform(np.atleast_2d(vocab)) I
still not out of error
try self.bov_helper.scale.transform(vocab) (don’t use np.atleast_2d) , change Line 140 from word = each.split("/")[-1] to ' \ ' If still the same error ,debug getFiles method(Line 129) in helper.py
from bag-of-visual-words-python.
I have tried all the methods given above. I am still having the problem. Please explain in detail. Thank you in advance
from bag-of-visual-words-python.
Related Issues (12)
- Warnings HOT 3
- vStack = np.array(l[0]) HOT 5
- ValueError: all the input array dimensions except for the concatenation axis must match exactly
- For Windows User
- Why model classifying in images into two classes. I want multi class classification.
- 运行出错
- could you clarify why this array kmeans_ret[old_count+j] is used? unable to comprehend use of adding j
- Using code in master thesis
- licence for master thesis HOT 2
- IndexError: list index out of range
- test_path and train_path arguments bugs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bag-of-visual-words-python.