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
74 lines
2.1 KiB
Python
74 lines
2.1 KiB
Python
"""API blueprint registration.
|
|
|
|
This module is imported by the Quart app factory; it just exposes the
|
|
top-level `api_bp` for backward compatibility with FC-1's health route,
|
|
and ALL_BLUEPRINTS for the factory to register sibling blueprints.
|
|
"""
|
|
|
|
from quart import Blueprint
|
|
|
|
from . import health
|
|
|
|
api_bp = Blueprint("api", __name__, url_prefix="/api")
|
|
api_bp.add_url_rule("/health", view_func=health.get_health, methods=["GET"])
|
|
|
|
|
|
def all_blueprints() -> list[Blueprint]:
|
|
from .admin import admin_bp
|
|
from .aliases import aliases_bp
|
|
from .artist import artist_bp
|
|
from .artists import artists_bp
|
|
from .attachments import attachments_bp
|
|
from .ccip import ccip_bp
|
|
from .cleanup import cleanup_bp
|
|
from .credentials import credentials_bp
|
|
from .downloads import downloads_bp
|
|
from .extension import extension_bp
|
|
from .gallery import gallery_bp
|
|
from .gpu import gpu_bp
|
|
from .heads import heads_bp
|
|
from .import_admin import import_admin_bp
|
|
from .ml_admin import ml_admin_bp
|
|
from .platforms import platforms_bp
|
|
from .posts import posts_bp
|
|
from .provenance import provenance_bp
|
|
from .settings import settings_bp
|
|
from .showcase import showcase_bp
|
|
from .sources import sources_bp
|
|
from .suggestions import suggestions_bp
|
|
from .system_activity import system_activity_bp
|
|
from .system_backup import system_backup_bp
|
|
from .tag_eval import tag_eval_bp
|
|
from .tags import tags_bp
|
|
from .thumbnails import thumbnails_bp
|
|
return [
|
|
api_bp,
|
|
attachments_bp,
|
|
gallery_bp,
|
|
provenance_bp,
|
|
tags_bp,
|
|
artist_bp,
|
|
artists_bp,
|
|
showcase_bp,
|
|
settings_bp,
|
|
system_activity_bp,
|
|
system_backup_bp,
|
|
admin_bp,
|
|
cleanup_bp,
|
|
import_admin_bp,
|
|
suggestions_bp,
|
|
aliases_bp,
|
|
tag_eval_bp,
|
|
heads_bp,
|
|
gpu_bp,
|
|
ccip_bp,
|
|
ml_admin_bp,
|
|
thumbnails_bp,
|
|
sources_bp,
|
|
platforms_bp,
|
|
posts_bp,
|
|
credentials_bp,
|
|
extension_bp,
|
|
downloads_bp,
|
|
]
|