← Albums <% unless @clusters.empty? %> Public Page ↗ <% end %>

People

Clustering

<%= @total %> cluster<%= @total == 1 ? '' : 's' %> · <%= @named_count %> named <% if @updated_at %>· last run <%= @updated_at %><% end %>

Re-clustering reads all faces.json files and groups similar faces together. Existing names are preserved. Run again whenever the face daemon has processed a significant batch of new photos.

<% if @clusters.empty? %>

No face data yet — the face daemon is still processing, or run Re-cluster once it has finished a pass.

<% else %>
<% @clusters.each do |c| %>
<% c[:samples].each do |s| %> <% end %> <% if c[:count] > c[:samples].length %> +<%= c[:count] - c[:samples].length %> <% end %>
<%= c[:count] %> photo<%= c[:count] == 1 ? '' : 's' %>
<% if c[:slug] %> <% end %>
<% end %> <% if @total > @clusters.length %>

Showing <%= @clusters.length %> of <%= @total %> clusters (named first, then largest unnamed).

<% end %>
<% end %>