Closed AruniRC closed 6 years ago
Issue solved:
In colorization/resources/caffe_traininglayers.py
, the original line was
self.nbrs = nn.NearestNeighbors(n_neighbors=NN, algorithm='ball_tree').fit(self.cc)
This would cause n_neighbors to be 10.0 and not 10, which leads to the indexing error. I believe later versions of numpy and sklearn have become more strict about not allowing index variables to be integer-valued float dtypes. n_neighbors=NN shold read n_neighbors=self.NN.
That line should be changed to:
self.nbrs = nn.NearestNeighbors(n_neighbors=self.NN, algorithm='ball_tree').fit(self.cc)
Hope this helps anyone else with this issue.
Thank you ,I solved.
@AruniRC oh man you save me!thank you so much!
When training the network from scratch using
./train/train_model.sh 0
, the following error happens at the "Solving LtoAB" step of the training:The data
pts_flt
is a float32 numpy ndarray. Could this be due to a version problem in sklearn itself (I am using 0.18.1)? Please let me know what version of scikit is used for this codebase and I'll match that and try training again.thanks, Aruni