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):
889
889
big_npy_idx = np .arange (big_npy .shape [0 ])
890
890
np .random .shuffle (big_npy_idx )
891
891
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):
894
894
infos .append ("Trying doing kmeans %s shape to 10k centers." % big_npy .shape [0 ])
895
895
yield "\n " .join (infos )
896
896
try :
@@ -1143,8 +1143,8 @@ def get_info_str(strr):
1143
1143
np .random .shuffle (big_npy_idx )
1144
1144
big_npy = big_npy [big_npy_idx ]
1145
1145
1146
- # if(big_npy.shape[0]>2e5):
1147
- if (1 ):
1146
+ if (big_npy .shape [0 ]> 2e5 ):
1147
+ # if(1):
1148
1148
info = "Trying doing kmeans %s shape to 10k centers." % big_npy .shape [0 ]
1149
1149
print (info )
1150
1150
yield get_info_str (info )
You can’t perform that action at this time.
0 commit comments