<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Riiya on Medium]]></title>
        <description><![CDATA[Stories by Riiya on Medium]]></description>
        <link>https://medium.com/@crazycowliu?source=rss-9eb92bad16b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*N-9yt4rZNfCakY0HcIUyAA.png</url>
            <title>Stories by Riiya on Medium</title>
            <link>https://medium.com/@crazycowliu?source=rss-9eb92bad16b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:08:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@crazycowliu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AI Portrait Photography: From Lensa to novita.ai]]></title>
            <link>https://medium.com/@crazycowliu/ai-portrait-photography-from-lensa-to-novita-ai-1a711036104c?source=rss-9eb92bad16b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a711036104c</guid>
            <category><![CDATA[lora]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[aigc]]></category>
            <category><![CDATA[fine-tuning]]></category>
            <dc:creator><![CDATA[Riiya]]></dc:creator>
            <pubDate>Sun, 03 Dec 2023 02:40:45 GMT</pubDate>
            <atom:updated>2023-12-03T02:40:45.728Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lensa</h3><p>There was an overseas app called Lensa that launched this feature early this year. It achieved $10 million revenue in just one month.</p><h3>novita.ai</h3><p><a href="https://novita.ai/?utm_source=riiya_medium">novita.ai</a> serves developers by abstracting portrait photography training into a training API for everyone to call. This allows every developer to have the same capabilities as Wonder Duck Camera underneath, so they can focus on business logic and build more diverse applications. Below, I will demonstrate how to train a personal model using their demo.</p><h3>Train Your Own Model</h3><p>Sign up for a <a href="https://novita.ai/?utm_source=riiya_medium">novita.ai</a> account and get an API key.</p><p>Go to <a href="https://huggingface.co/spaces/novita-ai/Face-Stylization-Playground">Face-Stylization-Playground</a> on Hugging Face.</p><p>Choose “Subject Training”, pick a “Base Model”, specify “Gender”, enter a “Training Name”, use the default 1400 “Training Steps”, upload photos of the person you want to train on — I’m using a public figure here. Then you can start training. Note that:</p><ol><li>Aside from “Subject Training”, there is also “Style Training” that you can try, the process is similar.</li><li>The demo does not expose all training parameters. Refer to the API documentation if needed.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*PkguowE85gjKSU_tCyWKFA.jpeg" /></figure><p>Then it’s waiting for the training to finish. You can click “Refresh Training Status” to monitor progress through the stages: “Queued” -&gt; “Training” -&gt; “Deploying” -&gt; “Serving”. For me the whole process took less than 10 minutes. Take note of the “model_name” — this LoRA name will be used later for inference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*ADmp9CLd8WdMmF9igoN8Lg.jpeg" /></figure><p>Once it reaches the “Serving” stage, the trained LoRA can be used to generate images. Still on the playground, choose “Subject Inference” to go to inference interface. Click “Refresh LoRAs”, select your LoRA below, fill in prompt and parameters (or use the table for prompt/params), add your model name: lora:model_1701567018_09F83BE435:1, click Generate, and here are my results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VDLzulpisDm9TX67YMYdEA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uOq0GClVZRGA5IGTfzClLw.jpeg" /></figure><h3>Conclusion</h3><p>This article focused on using the demo, but to integrate into your own app requires the API. See documentation:</p><p><a href="https://novita.ai/get-started/Model_training.html?utm_source=riiya_medium">Training API | Novita.ai docs</a></p><p><a href="https://docs.novita.ai/training-api/?utm_source=riiya_medium">Training API Reference</a></p><p>Even if you’re not a developer, you can use this demo like your own Lensa for your own pics</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a711036104c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>