Roni Rahman Profile picture
Dec 31, 2023 16 tweets 6 min read Read on X
How to make your own AI model!

This is going to be a step-by-step tutorial but at the same time, I'll keep it as simple as possible so anyone can replicate it.

So let's get started:

(this is a repost) Image
Here is some context about AI models that led me to make this tutorial.

Also, I want to mention that this tutorial is highly inspired by Fireship.

And you need at least a decent PC to produce images faster. I have a 6th gen rig with a 3070 and only 8 gigs of RAM.
First of all, we need an image generator.

For this project, I'm going to use Stable Diffusion XL, which is a free and open-source product.

Why not DALL-E/Midjourney?

They are not as flexible as SDXL. Plus they are paid and closed-source products.
To use SDXL, we need a web interface. Some popular choices are:

1. Automatic1111 - Web UI
2. Comfyanonymous - ComfyUI
3. lllyasviel - Fooocus

Fooocus is the simpler one, plus it has all the features we need at the moment. So let's install Fooocus.
How to install Foocus:

Visit github page: and download the package.

You can clone the repo and run python script manually, but for this tutorial I'm keeping it as simple as possible.

Just click on download to download the install file. github.com/lllyasviel/Foo…
Extract it to your desired location.

Next, click on 'run' to download the base files. Depending on your internet speed it can take a while.

Once it's complete you can open Fooocus in your browser.

Click on 'run', it will check for the updates and open Foocus in a browser tab.
Now we're ready to generate some realistic images. Simply write your prompt and click 'Generate'.

For example- I've created this gentleman using:

"Middle-Aged Gentleman Standing on a Luxurious Yacht"

But we are not here for the gentleman. Are we?

So let's create our model.
First, let's generate the face.

Click on Advanced-

• Choose an aspect ratio
• Turn on 'Fooocus Photograph' style preset
• Select a base model (juggernaut is good enough, it's the default)

Now describe how you want her to look like and click 'Generate'.
Now we have a pretty good base face for our model.

Get creative with the prompt until you're happy with the model. Try google'ing photo-realistic prompts. You'll get tons of good ideas.

Now let's make our model do something. Image
Click on input image > image prompt > upload the base model photo

Next, go to advanced > click on 'Faceswap'

Finally, write a simple prompt of doing something. In my case my prompt was-

"holding a glass of wine in a fancy restaurant"
We have a pretty good model with a consistent face.

Now all you need to do is get creative with the prompt. Add jewelry, different dresses, poses, scenarios etc.

The better the prompt the better the image.
If you're ready to take it to the next level, consider using some community assets.

There is a wide variety of characters, clothing items, poses, vehicles, objects etc.

Check out websites like civitai. com

All of these assets are open source and free to use.
Inpaint

To fix an imperfect area use the 'Inpaint or Outpaint' option.

Just draw the imperfect area and provide a simple prompt like fix this area, change eye colors and so on.
Finally, you can use the default upscaler to upscale the image.

Also, there are some really good paid upscaler out there, if you want to go that way.

Please note:

It took me about 3-4 minutes to generate 2 high-quality images. My system struggled because of only 8 gigs of RAM Image
There are a lot of advanced settings to try out but the thread is already too long. Thank you so much if you've come this far!

I share my findings and more in-depth tutorials in my newsletter.

Make sure to subscribe if you're interested in that.

cyberman.beehiiv.com/subscribe
I hope you've found this thread helpful. Feel free to ask me any questions.

Follow me @heyronir for more AI news 🔔

P.S. I'd appreciate it if you could Like/Repost the first post:

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Roni Rahman

Roni Rahman Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @heyronir

Feb 26, 2025
Microsoft has released free courses on AI with certificates.

No payment required!

Here are 8 courses to master AI in 2025 👇 Image
1. Career Essentials in Generative AI

• Develop an understanding of generative AI models
• Learn the ethical considerations of using generative AI
• Explore the impact of generative AI tools

linkedin.com/learning/paths…
2. Microsoft - AI For Beginners Curriculum

• 12-week, 24-lesson curriculum
• Covers Symbolic AI, Neural Networks, Computer Vision, NLP, etc.
• Includes hands-on lessons, quizzes, labs

microsoft.github.io/AI-For-Beginne…
Read 11 tweets
Feb 23, 2025
MIT University just released free online courses.

No payment needed.

10 MIT courses you don't want to miss (Number 8 is a must) 👇 Image
1. Becoming an Entrepreneur

Topics covered:

→ Identifying business opportunities
→ Overcoming the top myths of entrepreneurship
→ Defining your goals as an entrepreneur and startup
→ Designing and testing your offering and more

edx.org/learn/entrepre…
2. Machine Learning with Python

An in-depth introduction to the field of machine learning.

Topics covered:

→ Principles behind machine learning
→ Implement and analyze models
→ Organizing machine learning projects

edx.org/learn/machine-…
Read 13 tweets
Feb 19, 2025
Grok 3 just dropped, and the internet is going crazy!

Elon Musk and xAI delivered something truly next-level.

Here are 10 insane things people are already making with it 👇

(Don't miss #9) Image
1. Building a complete game using Grok 3

2. Making water molecule simulation

Read 13 tweets
Feb 17, 2025
NVIDIA just released FREE online courses on AI.

No payment required!

Here are 8 courses you don't want to miss: Image
1. Generative AI Explained

Learn learn how to:

• Define Generative AI and explain how Generative AI works
• Describe various Generative AI applications
• Explain the challenges and opportunities in Generative AI

courses.nvidia.com/courses/course…
2. AI for All: From Basics to GenAI Practice

• AI impacts industries like healthcare and autonomous vehicles
• From machine learning to generative AI
• GenAI creates music, images, and videos

academy.nvidia.com/en/course/ai-f…
Read 12 tweets
Feb 15, 2025
Gmail has over 1.8 billion users!

Yet 95% of them never use its hidden features.

Here are 10 game-changing Gmail tricks you should know 👇 Image
1. Undo the email you just sent

Did you know you can unsent your email within up to 30 seconds?

Go to Settings > General > Undo Send and Select 30 seconds.
2. Send a Confidential Email

You can send confidential emails that expire after a set time or can be revoked at any time.

This also prevents recipients from forwarding, copying, printing, or downloading the message or attachments.
Read 13 tweets
Feb 9, 2025
Microsoft has released free courses on AI with certificates.

No payment is required!

Here are 8 courses to master AI in 2025 👇 Image
1. Career Essentials in Generative AI

• Develop an understanding of generative AI models
• Learn the ethical considerations of using generative AI
• Explore the impact of generative AI tools

linkedin.com/learning/paths…
2. Microsoft - AI For Beginners Curriculum

• 12-week, 24-lesson curriculum
• Covers Symbolic AI, Neural Networks, Computer Vision, NLP, etc.
• Includes hands-on lessons, quizzes, labs

microsoft.github.io/AI-For-Beginne…
Read 11 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(