Published on

Creating a 3D Icon Generator

In this tutorial, we will guide you through the process of creating a 3D icon generator using Arkwright AI. The tutorial covers uploading your LoRA and model to the Hugging Face repository, creating a new project on Arkwright AI, and generating customized 3D icons.

Stable diffusion 3D icons
Table of Contents

    Upload your LoRA and Model to Hugging Face Repository

    Begin by downloading the 3D cartoon element" LoRA by TOPLCL with the toonAme stable diffusion checkpoint by NestOrtiz3D, available at civitai.com.

    1. Visit huggingface.co and create a new "model" repository with the name "3d." Ensure that the visibility settings are set to "public" and click on "Create Model."
    2. Once the repository is created, navigate to the "Files and versions" tab. Click on the "Add file" button on the right side, and select "Upload files" from the menu.
    3. In the upload panel, drag and drop your LoRA and checkpoint model files. Ensure that the files are not placed inside a folder.
    4. After the files finish processing, provide a commit message to complete the upload.

    Learn more about uploading to Huggingface Hub

    Create a New Project and Connect Your Model

    Return to arkwright.ai and access your account dashboard. Create a new project to initiate the hosting of your stable diffusion model.

    1. Upon project creation, a workflow will be set up for generating images. Customize the workflow by selecting your own checkpoint and LoRA. In the 'model' subsection of the Stable Diffusion node, choose 'Custom' from the dropdown.
    2. Copy the repository ID and filename of your checkpoint to add your model from Hugging Face.
    3. Repeat the process for the 'LoRA' subsection, pasting the repository ID and filename of your LoRA file.
    Import model from Huggingface Hub

    Input Your Prompt and Generate

    Utilize a sample prompt provided by the 3D cartoon element LoRA and proceed with running the workflow. I am using the prompt: masterpiece, best quality, unicorn, cute, 3dzujian, 3d rendering, Cartoon material, clean background, white background, blank background

    Click on the "Run workflow" button on the left-hand side, initiating the execution of nodes with the provided text in the "input" node.

    Generate with prompt

    Enhance your workflow by incorporating a "Remove Background" node to achieve a PNG icon with a transparent background.

    1. Drag and drop the "Remove Background" card from the left-hand panel into the workflow.
    2. Connect the input with the result from your Stable Diffusion node, to the Remove Background node. Link the output with API outputs.
    3. Re-run the workflow, and the result will now meet your specifications, providing the desired transparent background for your 3D icon generator.
    Generate with prompt

    Here is the final generated result:

    Stable diffusion result