485387ff0b
Heads + CCIP are the tag source and head auto-apply is the earned propagation.
The Camie tagger ran only to feed the allowlist bulk-apply (its ImagePrediction
rows had no other consumer), and the allowlist was a SECOND, un-earned auto-apply
path firing in parallel with heads on every accept — exactly the un-earned spray
the v2 pivot replaced. Retire both.
Behavior change: accepting a suggestion now applies the tag to THAT image only
(source='ml_accepted', a head-training positive) — it no longer allowlists +
fans the tag across the library via Camie. Propagation is heads' earned
auto-apply. (Loses instant cold-start propagation for booru-vocab tags; that was
un-earned and bypassed the precision gate.)
- tag_and_embed is now EMBED-ONLY (no Camie load/infer, no ImagePrediction
writes); backfill enqueues it for images with no embedding.
- Removed: services/ml/tagger.py, apply_allowlist_tags + helpers + daily beat +
every enqueue caller (accept/alias/merge/per-image), api/allowlist.py +
blueprint, ImagePrediction + TagAllowlist models/tables (migration 0067),
AllowlistTable.vue + allowlist store, the accept coverage-projection payload.
- AllowlistService gutted to accept/dismiss/undismiss/reject (the rejection store
the rail still needs); accept returns nothing, API returns {accepted, tag_id}.
- tag merge no longer repoints/triggers the allowlist; _keep_as_alias now keys on
ML-applied image_tag sources (incl. head_auto) instead of the allowlist.
- UI: MLBackfillCard relabelled to embedding-only; accept toast simplified;
MaintenancePanel drops the allowlist tile.
Left for a follow-up hygiene pass (now-inert, harmless): the dead settings
columns (tagger_store_floor, tagger_model_version, suggestion_threshold_*,
video_min_tag_frames), image_record.tagger_model_version, MLThresholdSliders
trim, and the Camie model download in download_models.py.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ttrj5P7upUTueSfoJcxEqa
103 lines
2.9 KiB
Vue
103 lines
2.9 KiB
Vue
<template>
|
|
<div class="fc-maint">
|
|
<p class="fc-muted text-body-2 mb-5">
|
|
One-off backfills, tagging config and storage tools. Heads train nightly
|
|
and auto-apply earned tags. Click a tile to open it.
|
|
</p>
|
|
|
|
<section class="fc-section">
|
|
<h3 class="fc-section__title">Backfills & reprocessing</h3>
|
|
<p class="fc-section__hint">Re-run tagging, thumbnails, extraction and DB upkeep.</p>
|
|
<div class="fc-tile-grid">
|
|
<MLBackfillCard />
|
|
<ThumbnailBackfillCard />
|
|
<ArchiveReextractCard />
|
|
<MissingFileRepairCard />
|
|
<DbMaintenanceCard />
|
|
</div>
|
|
</section>
|
|
|
|
<section class="fc-section">
|
|
<h3 class="fc-section__title">Tagging</h3>
|
|
<p class="fc-section__hint">
|
|
Suggestion thresholds, the auto-apply allowlist and tag aliases.
|
|
</p>
|
|
<div class="fc-tile-stack">
|
|
<MLThresholdSliders />
|
|
<HeadsCard />
|
|
<GpuAgentCard />
|
|
<AliasTable />
|
|
<TagEvalCard />
|
|
</div>
|
|
</section>
|
|
|
|
<section class="fc-section">
|
|
<h3 class="fc-section__title">Storage</h3>
|
|
<p class="fc-section__hint">Database + image backups and restore.</p>
|
|
<div class="fc-tile-stack">
|
|
<BackupCard />
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { onMounted, onUnmounted } from 'vue'
|
|
|
|
import MLBackfillCard from './MLBackfillCard.vue'
|
|
import ThumbnailBackfillCard from './ThumbnailBackfillCard.vue'
|
|
import ArchiveReextractCard from './ArchiveReextractCard.vue'
|
|
import MissingFileRepairCard from './MissingFileRepairCard.vue'
|
|
import DbMaintenanceCard from './DbMaintenanceCard.vue'
|
|
import MLThresholdSliders from './MLThresholdSliders.vue'
|
|
import HeadsCard from './HeadsCard.vue'
|
|
import GpuAgentCard from './GpuAgentCard.vue'
|
|
import AliasTable from './AliasTable.vue'
|
|
import TagEvalCard from './TagEvalCard.vue'
|
|
import BackupCard from './BackupCard.vue'
|
|
import { useSystemActivityStore } from '../../stores/systemActivity.js'
|
|
|
|
// Poll queue depths so each task tile's QueueStatusBar shows live pending
|
|
// counts — the operator can see a backfill is already queued/running before
|
|
// re-triggering it.
|
|
const activity = useSystemActivityStore()
|
|
let qTimer = null
|
|
onMounted(() => {
|
|
activity.loadQueues()
|
|
qTimer = setInterval(() => {
|
|
if (!document.hidden) activity.loadQueues()
|
|
}, 4000)
|
|
})
|
|
onUnmounted(() => {
|
|
if (qTimer) { clearInterval(qTimer); qTimer = null }
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
.fc-section { margin-bottom: 24px; }
|
|
.fc-section__title {
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: rgb(var(--v-theme-accent));
|
|
margin-bottom: 2px;
|
|
}
|
|
.fc-section__hint {
|
|
font-size: 0.8rem;
|
|
color: rgb(var(--v-theme-on-surface-variant));
|
|
margin-bottom: 12px;
|
|
}
|
|
.fc-tile-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 14px;
|
|
align-items: start;
|
|
}
|
|
.fc-tile-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
</style>
|