Commit fed1428
committed
fix(face): graceful synthetic embedding when Replicate InsightFace 422s
Public daanelson/insightface model was removed from Replicate — calls
now 422 with 'Invalid version or not permitted'. The service was
throwing on that error, which cascaded up through AvatarPipeline and
blocked every downstream stage (expression_sheet, full_body) for every
companion regen. Staff portrait regens were silently reporting
'status: generated' with stale expression URLs because the pipeline
was swallowing the throw further up the stack.
Return a 512-dim unit vector on any Replicate failure or unparseable
output. Drift detection becomes a no-op (cosine similarity against any
other synthetic vector resolves to 1.0), but expressions still render
via the img2img path using the neutral portrait as a reference. This
is a strictly better degradation than the throw-everything-away
behavior we had before.1 parent edc0073 commit fed1428
1 file changed
Lines changed: 38 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
| |||
115 | 125 | | |
116 | 126 | | |
117 | 127 | | |
118 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
119 | 132 | | |
120 | 133 | | |
121 | | - | |
| 134 | + | |
| 135 | + | |
122 | 136 | | |
123 | 137 | | |
124 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
125 | 158 | | |
126 | 159 | | |
127 | 160 | | |
| |||
0 commit comments