<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Open-Source on jdcsen</title><link>https://jdcsen.com/tags/open-source/</link><description>Recent content in Open-Source on jdcsen</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 01 Jan 1970 00:33:46 +0000</lastBuildDate><atom:link href="https://jdcsen.com/tags/open-source/index.xml" rel="self" type="application/rss+xml"/><item><title>stable-diffusion.cpp: Identity Conditioning in sd-server</title><link>https://jdcsen.com/projects/sdcpp-identity-server/</link><pubDate>Thu, 01 Jan 1970 00:33:46 +0000</pubDate><guid>https://jdcsen.com/projects/sdcpp-identity-server/</guid><description>&lt;ul&gt;&#10;&lt;li&gt;Fork of &lt;a href="https://github.com/leejet/stable-diffusion.cpp" target="_blank"&gt;stable-diffusion.cpp&lt;/a&gt; adding per-request reference-image identity conditioning (PhotoMaker v2 on SDXL bases, PuLID on Flux) to the &lt;code&gt;sd-server&lt;/code&gt; HTTP surface. Upstream registered the flags but only the CLI ever populated them.&lt;/li&gt;&#10;&lt;li&gt;Eleven commits, about 1,900 lines added over 19 files. Roughly 89% lives in &lt;code&gt;examples/server/&lt;/code&gt;; the core engine changes total 87 lines. &lt;code&gt;sd-cli&lt;/code&gt; and the core library stay Python-free.&lt;/li&gt;&#10;&lt;li&gt;Reference-image encoding runs in-process through an embedded CPython interpreter (pybind11), behind two CMake flags that default to OFF so the vanilla build is unchanged.&lt;/li&gt;&#10;&lt;li&gt;Identity embeddings can be extracted once and re-injected: the round trip reproduces the image-path generation byte for byte at a fixed seed.&lt;/li&gt;&#10;&lt;li&gt;&amp;ldquo;No identity images&amp;rdquo; is proven to mean &amp;ldquo;no effect&amp;rdquo;: generations are md5-identical to the bare base model.&lt;/li&gt;&#10;&lt;li&gt;One upstream-worthy bug fix in core: an off-by-one in &lt;code&gt;clip_preprocess&lt;/code&gt; center-cropping that crashed any CLIP-vision path on odd input dimensions.&lt;/li&gt;&#10;&lt;/ul&gt;</description></item></channel></rss>