Hopefully final push
Browse files220 unmodified lines2212222232242252262272282292302312322332342359 unmodified lines24524624724824925025113 unmodified lines265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300220 unmodified lines</div>))}</div></div><div className="space-y-6"><div className="rounded-2xl border border-emerald-900 bg-slate-950/80 p-6 shadow-lg shadow-emerald-900/30 space-y-4"><div className="text-xs font-mono uppercase tracking-[0.25em] text-emerald-400/80">Under the hood</div><ol className="space-y-4 text-sm md:text-base text-emerald-100/80"><li><span className="font-semibold text-emerald-300">Face Extraction (YOLOv8):</span> We discard thebackground and auto-crop each detected face with a 1.3× safety margin so micro-forensic cues stay in frame.</li><li><span className="font-semibold text-emerald-300">Smart Preprocessing:</span> A light Gaussian blur acts as a9 unmodified lines</li></ol></div><div className="rounded-2xl border border-cyan-900/60 bg-slate-950/80 p-6 space-y-4 shadow-lg shadow-cyan-900/20"><div className="text-xs font-mono uppercase tracking-[0.25em] text-cyan-300/80">Performance</div><p className="text-sm md:text-base text-emerald-100/80">13 unmodified lines</dl></div><div className="rounded-2xl border border-emerald-900/60 bg-slate-950/80 p-6 space-y-5 shadow-lg shadow-emerald-900/20"><div className="flex items-center justify-between"><div><div className="text-xs font-mono uppercase tracking-[0.25em] text-emerald-400/80">Model stack</div><p className="text-sm text-emerald-100/80">ResNet18 feature extractor + lightweight heads.</p></div><span className="px-2 py-0.5 rounded-full bg-emerald-500/10 border border-emerald-500/40 text-[10px] text-emerald-200">Transfer learning</span></div><div className="space-y-3"><div className="flex flex-wrap gap-3">{ARCHITECTURE_BLOCKS.map((block) => (<divkey={block.label}className={`flex-1 min-w-[110px] rounded-xl border border-white/10 px-4 py-3 bg-gradient-to-r ${block.gradient}`}><div className="text-[11px] uppercase tracking-wide font-semibold text-white/90">{block.label}</div><div className="text-xs text-white/80">{block.detail}</div></div>))}</div><div className="flex flex-wrap gap-3">{HEAD_BLOCKS.map((block) => (<divkey={block.label + block.detail}className="flex-1 min-w-[100px] rounded-lg border border-emerald-800/60 px-3 py-2 bg-slate-950/80"><div className="text-[11px] uppercase tracking-wide text-emerald-200/80">{block.label}</div>{block.detail && <div className="text-xs text-emerald-100/80">{block.detail}</div>}</div>))}</div></div></div>220 unmodified lines2212222232242252262272282292302312322339 unmodified lines24324424524624724824925025113 unmodified lines265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317220 unmodified lines</div>))}</div><div className="mt-8 rounded-2xl border border-emerald-900 bg-slate-950/80 p-6 shadow-lg shadow-emerald-900/30 space-y-4"><div className="text-xs font-mono uppercase tracking-[0.25em] text-emerald-400/80">Under the hood</div><ol className="space-y-4 text-sm md:text-base text-emerald-100/80"><li><span className="font-semibold text-emerald-300">Face Extraction (YOLOv8):</span> We discard the background andauto-crop each detected face with a 1.3× safety margin so micro-forensic cues stay in frame.</li><li><span className="font-semibold text-emerald-300">Smart Preprocessing:</span> A light Gaussian blur acts as a9 unmodified lines</li></ol></div></div><div className="space-y-6"><div className="rounded-2xl border border-cyan-900/60 bg-slate-950/80 p-6 space-y-4 shadow-lg shadow-cyan-900/20"><div className="text-xs font-mono uppercase tracking-[0.25em] text-cyan-300/80">Performance</div><p className="text-sm md:text-base text-emerald-100/80">13 unmodified lines</dl></div><div className="rounded-2xl border border-emerald-900/60 bg-slate-950/80 p-6 space-y-6 shadow-lg shadow-emerald-900/20"><div className="flex items-center justify-between"><div><div className="text-xs font-mono uppercase tracking-[0.25em] text-emerald-400/80">Model stack</div><p className="text-sm text-emerald-100/80">Top-down view of the ResNet18 backbone and heads.</p></div><span className="px-2 py-0.5 rounded-full bg-emerald-500/10 border border-emerald-500/40 text-[10px] text-emerald-200">Transfer learning</span></div><div className="space-y-5"><div className="flex items-center gap-3 text-xs text-emerald-200/80"><span className="px-3 py-1 rounded-full border border-emerald-500/50 bg-emerald-500/10 font-semibold tracking-wide">ImageNet weights</span><span>Pretrained initialization feeding the feature extractor below.</span></div><div><div className="text-[10px] uppercase tracking-[0.3em] text-emerald-300/80 mb-2">Feature extractor</div><div className="relative pl-6"><div className="absolute left-3 top-2 bottom-4 w-px bg-emerald-500/30" />{ARCHITECTURE_BLOCKS.map((block, idx) => (<div key={block.label} className="relative pl-3 py-3"><span className="absolute left-[-9px] top-3 h-2 w-2 rounded-full bg-emerald-300" /><div className="text-sm font-semibold text-emerald-100">{block.label}</div><div className="text-xs text-emerald-200/80">{block.detail}</div>{idx < ARCHITECTURE_BLOCKS.length - 1 && (<div className="absolute left-[-7px] bottom-[-6px] text-emerald-400/60 text-lg leading-none">↓</div>)}</div>))}</div></div><div className="pt-4 border-t border-emerald-900/50"><div className="text-[10px] uppercase tracking-[0.3em] text-emerald-300/80 mb-2">Heads</div><div className="relative pl-6"><div className="absolute left-3 top-2 bottom-2 w-px bg-emerald-500/30" />{HEAD_BLOCKS.map((block, idx) => (<div key={block.label + block.detail} className="relative pl-3 py-2"><span className="absolute left-[-9px] top-3 h-2 w-2 rounded-full bg-cyan-300" /><div className="text-sm font-semibold text-emerald-100">{block.label}</div>{block.detail && <div className="text-xs text-emerald-200/80">{block.detail}</div>}{idx < HEAD_BLOCKS.length - 1 && (<div className="absolute left-[-7px] bottom-[-6px] text-cyan-400/60 text-lg leading-none">↓</div>)}</div>))}</div></div></div></div>
frontend/pages/index.jsx+45-28