Instructions to use haresh2792005/MFAF-Net with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MediaPipe
How to use haresh2792005/MFAF-Net with MediaPipe:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
File size: 3,913 Bytes
c4a514c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | /* MFAF-Net — Additional CSS overrides */
/* Main styles live in templates/index.html <style> block */
/* =========================================================
ANIMATION KEYFRAMES — Step Progress Indicator
========================================================= */
@keyframes stepPulse {
0% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.6); }
70% { box-shadow: 0 0 0 10px rgba(74, 144, 226, 0); }
100% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0); }
}
@keyframes stepComplete {
0% { transform: scale(0.8); opacity: 0; }
60% { transform: scale(1.1); }
100% { transform: scale(1); opacity: 1; }
}
@keyframes progressFill {
from { width: 0%; }
to { width: 100%; }
}
@keyframes fadeSlideIn {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
.step-active {
animation: stepPulse 1.4s ease-in-out infinite;
}
.step-done {
animation: stepComplete 0.35s ease-out forwards;
}
.results-fadein {
animation: fadeSlideIn 0.5s ease-out both;
}
/* =========================================================
RESPONSIVE BREAKPOINTS — Mobile < 768 px
========================================================= */
@media (max-width: 768px) {
.upload-area {
padding: 1.5rem 1rem;
min-height: 160px;
}
.form-grid {
grid-template-columns: 1fr;
}
.results-grid {
grid-template-columns: 1fr;
}
.image-comparison {
flex-direction: column;
}
.image-comparison > * {
width: 100% !important;
}
.metrics-row {
flex-wrap: wrap;
gap: 0.5rem;
}
.metric-card {
flex: 1 1 calc(50% - 0.5rem);
min-width: 120px;
}
.step-labels {
display: none; /* hide text labels on very small screens */
}
.btn-analyze {
width: 100%;
padding: 0.9rem;
}
.navbar-brand span {
font-size: 1rem;
}
h1, .hero-title {
font-size: 1.5rem;
}
.sidebar {
width: 100%;
position: static;
}
}
@media (max-width: 480px) {
.metric-card {
flex: 1 1 100%;
}
.tab-nav {
overflow-x: auto;
white-space: nowrap;
}
.result-image {
max-height: 220px;
}
}
/* =========================================================
PRINT STYLES — Results Panel
========================================================= */
@media print {
/* Hide non-essential chrome */
nav,
.upload-section,
.form-section,
.btn-analyze,
.step-progress,
footer,
.toast-container {
display: none !important;
}
/* Show results panel full-width */
.results-section {
display: block !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
box-shadow: none !important;
}
/* Flatten card backgrounds */
.card, .metric-card, .result-card {
box-shadow: none !important;
border: 1px solid #ccc !important;
break-inside: avoid;
}
/* Images should scale to page */
.result-image, img {
max-width: 100% !important;
height: auto !important;
page-break-inside: avoid;
}
/* Results grid: 2 columns in print */
.results-grid {
grid-template-columns: 1fr 1fr !important;
}
/* Metrics always in one row */
.metrics-row {
display: flex !important;
flex-wrap: wrap !important;
}
.metric-card {
flex: 1 1 22% !important;
border: 1px solid #ccc !important;
}
/* Page header */
body::before {
content: "MFAF-Net — Facial Analysis Report";
display: block;
font-size: 1.4rem;
font-weight: bold;
text-align: center;
margin-bottom: 1rem;
border-bottom: 2px solid #333;
padding-bottom: 0.5rem;
}
/* Force black text */
* {
color: #000 !important;
background: #fff !important;
}
a[href]::after {
content: none !important; /* suppress URL printing */
}
}
|