File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -889,8 +889,8 @@ def train_index(exp_dir1, version19):
889889 big_npy_idx = np .arange (big_npy .shape [0 ])
890890 np .random .shuffle (big_npy_idx )
891891 big_npy = big_npy [big_npy_idx ]
892- # if(big_npy.shape[0]>2e5):
893- if (1 ):
892+ if (big_npy .shape [0 ]> 2e5 ):
893+ # if(1):
894894 infos .append ("Trying doing kmeans %s shape to 10k centers." % big_npy .shape [0 ])
895895 yield "\n " .join (infos )
896896 try :
@@ -1143,8 +1143,8 @@ def get_info_str(strr):
11431143 np .random .shuffle (big_npy_idx )
11441144 big_npy = big_npy [big_npy_idx ]
11451145
1146- # if(big_npy.shape[0]>2e5):
1147- if (1 ):
1146+ if (big_npy .shape [0 ]> 2e5 ):
1147+ # if(1):
11481148 info = "Trying doing kmeans %s shape to 10k centers." % big_npy .shape [0 ]
11491149 print (info )
11501150 yield get_info_str (info )
You can’t perform that action at this time.
0 commit comments