Skip to content

Commit 236e81b

Browse files
authored
Update kmeans_for_anchors.py
1 parent a046ae4 commit 236e81b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kmeans_for_anchors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def load_data(path):
144144
for j in range(anchors_num):
145145
plt.scatter(data[near == j][:,0], data[near == j][:,1])
146146
plt.scatter(cluster[j][0], cluster[j][1], marker='x', c='black')
147-
plt.show()
148147
plt.savefig("kmeans_for_anchors.jpg")
148+
plt.show()
149149
print('Save kmeans_for_anchors.jpg in root dir.')
150150

151151
cluster = cluster[np.argsort(cluster[:, 0] * cluster[:, 1])]

0 commit comments

Comments
 (0)