Giter Site home page Giter Site logo

bovw-classifier's Introduction

Hi! I am Zhiyuan "Paul" Zhou and I recently graduated from Brown University studying Applied Math & CS. I'm interested in Reinforcement Learning. Come check out my website for more info!

paulzhou

Hits

bovw-classifier's People

Contributors

zhouzypaul avatar

Stargazers

 avatar

Watchers

 avatar  avatar

bovw-classifier's Issues

train.py problem

hi

File ".\bovw\train.py", line 35, in
main()
File ".\bovw\train.py", line 20, in main
predictions = classifier.predict(testing_images)
File "C:\RouBot\bovw\bovw\classifier.py", line 62, in predict
hist_features = self.histogram_from_sift(sift_features=sift_features) # get histogram
File "C:\RouBot\bovw\bovw\classifier.py", line 160, in histogram_from_sift
sift_features_of_all_images = np.concatenate(sift_features, axis=0)
File "<array_function internals>", line 5, in concatenate
ValueError: need at least one array to concatenate

i am getting this error when trying train.py

do you know what can cause it ?

issue for train

Traceback (most recent call last):
File "d:/digital-image-processing/bovw-classifier-main/bovw/train.py", line 37, in
main()
File "d:/digital-image-processing/bovw-classifier-main/bovw/train.py", line 19, in main
classifier.fit(training_images, training_classes)
File "d:\digital-image-processing\bovw-classifier-main\bovw\classifier.py", line 44, in fit
self.train_kmeans(sift_features=sift_features)
File "d:\digital-image-processing\bovw-classifier-main\bovw\classifier.py", line 122, in train_kmeans
sift_features=np.concatenate(sift_features, axis=0)
File "<array_function internals>", line 5, in concatenate
ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 2 dimension(s) and the array at index 49 has 0 dimension(s)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.