BPOI Banner
OmniGen: An Open Source AI Model That Lets You Edit Images Conversationally OmniGen: An Open Source AI Model That Lets You Edit Images Conversationally

OmniGen: An Open Source AI Model That Lets You Edit Images Conversationally

This is Decrypt’s co-founder, Josh Quittner, having a casual meeting with his friend, Vitalik Buterin.

No, not really. They’ve never met, much less been in the same place at the same time. This image is a fake, which isn’t surprising. What is surprising is that it took us less than a minute to build, using two photos and a simple prompt: “The man from image 1 and the man from image 2 posing for the cameras in a bbq party.” Pretty nifty.

The model is Omnigen, and it’s a lot more than just an image generator. Instead, it focuses on image editing and context understanding, letting users tweak their generations by simply chatting to the model, rather than loading standalone third-party tools. It is capable of “reasoning” and understanding commands thanks to its embedded LLM.

Researchers at the Beijing Academy of Artificial Intelligence have finally released the weights—the executable AI models that users can run on their computer—of this new type of AI model that may be an all-in-one source for image creation. Unlike its predecessors, which operated like single-purpose task executors (having artists load separate image generators, controlnets, IPadapters, inpainting models, and so on) OmniGen functions as a comprehensive creative suite. It handles everything from basic image editing to complex visual reasoning tasks within a single, streamlined framework.

OmniGen relies on two core components: a Variational Autoencoder—the good old VAE that all AI artists are so familiar with—that deconstructs images into their fundamental building blocks, and a transformer model that processes varied inputs with remarkable flexibility. This stripped-down approach eliminates the need for supplementary modules that often bog down other image generation systems.

Trained on a dataset of one billion images, dubbed X2I (anything-to-image), OmniGen handles tasks ranging from text-to-image generation and sophisticated photo editing to more nuanced operations like in-painting and depth map manipulation. Perhaps most striking is its ability to understand context. So for example when prompted to identify a place to wash hands, it instantly recognizes and highlights sinks in images, showcasing a level of reasoning that approaches human-like understanding.

In other words, unlike any other image generator currently available, users can “talk” to Omnigen in a similar way they would interact with ChatGPT to generate and modify images—no need to deal with segmentation, masking, or other complex techniques, since the model is capable of understanding everything simply via commands.

So, basically imagine telling an open source model to create a winter coat with herringbone pattern, add fur trim, and adjust the length—all in one go. If you don’t like it, you can simply prompt “make the coat white” and it would understand the task without you having to manually select the coat, load a new model, prompt “white coat” and pray for the coat to look similar to your generation—or opening photoshop and having to deal with some color manipulation.

This is a pretty significant breakthrough.

One of the interesting achievements of this new model is that OmniGen has Microsoft’t Phi-3 LLM embedded and researchers trained the model to apply a chain-of-thought approach to image generation, breaking down complex creative tasks into smaller, more manageable steps, similar to how human artists work. This methodical process allows for unprecedented control over the creative workflow, though researchers note that output quality currently matches rather than exceeds standard generation methods.

Looking ahead, researchers are already exploring ways to enhance OmniGen’s capabilities. Future iterations may include improved handling of text-heavy images and more sophisticated reasoning abilities, potentially leading to even more natural interaction between human creators and AI tools.

How to run Omnigen

Omnigen is open source, so users can run it locally. However, users have a few free generations thanks to Hugging Face—the world’s largest open source AI community/repository—so they can use its servers to test the model in case they don’t have the required hardware.

Those who don’t want to bother a lot with the model can go to this free Hugging Face Space and play around with the model. It will open a very intuitive UI.

Basically, the model can handle up to three images of context and a nice amount of text input. It also shows a very detailed set of instructions to generate or edit images. If you are new to it, do not bother a lot with all the parameters. Simply insert the image (or images) you want to the program to edit or use as inspiration, and prompt it in the same way you would do with ChatGPT, using natural language.

However, those willing to generate images locally will have to download the weights, and some libraries. Considering its capabilities, it is expected to require a lot of VRam to run. Some reports show the model runs fine on 12GB of VRam and is only compatible with Nvidia cards for now.

To install the models locally, simply follow the instructions provided on the Github page: Basically, create a new installation folder, clone the github repository, install the dependencies, and you’re good to go. To have a nice UI instead of using just text, install the Gradio Interface, following the steps provided in the Github page. Alternatively, you can follow this tutorial in case you prefer video instructions.

If you are a bit more experienced, you can use ComfyUI to generate images. To install Omnigen, simply go to the download manager, search for the Omnigen node and install it. Once you are done, restart ComfyUI, and that’s it. When executed, the node itself will download the weights.

We were able to test the model, and it takes considerably longer to generate images when compared against SD 3.5 or Flux. It’s strength is not quality but accuracy, meaning, some images may lack details or realism, but will show high levels of prompt adherence, especially when dealing with natural language prompts in edits.

At its current state, Omnigen is not a good image generator for those looking for a model capable of beating Flux or SD 3.5. However, this model does not intend to be that.

For those looking for an AI-powered image editor, this is probably one of the most powerful and user-friendly options currently available. With simple prompt commands, it achieves similar results to what professional AI artists get with very complex workflows, dealing with highly specialized tools.

Overall, the model is a great alternative for beginners who are testing the waters of Open Source AI. However, it could be great for professional AI artists if they combine its powerful capabilities into their own workflows. It could also drastically simplify workflows from dozens of different nodes or passes to a single generation with a few less elements to run and load.

For example, using it as a primary source to merge different elements into a composition and then denoising that result so it can go through a second pass with a more powerful AI model could prove a very good and versatile solution to achieve great generations.

Generally Intelligent Newsletter

A weekly AI journey narrated by Gen, a generative AI model.

Source link

Jose Antonio Lanz

https://decrypt.co/290075/omnigen-open-source-ai-model-images-art

2024-11-04 20:40:12

bitcoin
Bitcoin (BTC) $ 96,994.99 1.12%
ethereum
Ethereum (ETH) $ 3,379.02 2.45%
tether
Tether (USDT) $ 0.999709 0.03%
xrp
XRP (XRP) $ 2.27 2.16%
bnb
BNB (BNB) $ 666.77 1.86%
solana
Solana (SOL) $ 185.90 4.23%
dogecoin
Dogecoin (DOGE) $ 0.320647 5.28%
usd-coin
USDC (USDC) $ 1.00 0.05%
staked-ether
Lido Staked Ether (STETH) $ 3,376.65 2.38%
cardano
Cardano (ADA) $ 0.914229 5.57%
tron
TRON (TRX) $ 0.248662 1.28%
avalanche-2
Avalanche (AVAX) $ 38.07 6.82%
chainlink
Chainlink (LINK) $ 22.62 5.87%
wrapped-steth
Wrapped stETH (WSTETH) $ 4,014.37 2.32%
the-open-network
Toncoin (TON) $ 5.40 2.09%
sui
Sui (SUI) $ 4.51 4.93%
shiba-inu
Shiba Inu (SHIB) $ 0.000022 5.13%
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 96,604.88 1.23%
hyperliquid
Hyperliquid (HYPE) $ 34.31 4.67%
stellar
Stellar (XLM) $ 0.368999 1.79%
polkadot
Polkadot (DOT) $ 7.14 4.70%
hedera-hashgraph
Hedera (HBAR) $ 0.267221 1.03%
weth
WETH (WETH) $ 3,378.32 2.45%
bitcoin-cash
Bitcoin Cash (BCH) $ 458.27 2.64%
leo-token
LEO Token (LEO) $ 9.34 0.77%
uniswap
Uniswap (UNI) $ 14.16 1.20%
litecoin
Litecoin (LTC) $ 102.43 1.23%
pepe
Pepe (PEPE) $ 0.000018 5.50%
wrapped-eeth
Wrapped eETH (WEETH) $ 3,564.45 2.48%
near
NEAR Protocol (NEAR) $ 5.08 6.21%
ethena-usde
Ethena USDe (USDE) $ 0.999491 0.00%
bitget-token
Bitget Token (BGB) $ 4.22 3.68%
aptos
Aptos (APT) $ 9.54 10.76%
usds
USDS (USDS) $ 0.997179 0.25%
internet-computer
Internet Computer (ICP) $ 10.22 6.85%
aave
Aave (AAVE) $ 307.37 5.49%
crypto-com-chain
Cronos (CRO) $ 0.159777 4.96%
polygon-ecosystem-token
POL (ex-MATIC) (POL) $ 0.486409 3.94%
ethereum-classic
Ethereum Classic (ETC) $ 26.45 4.04%
mantle
Mantle (MNT) $ 1.17 4.60%
render-token
Render (RENDER) $ 7.34 4.29%
vechain
VeChain (VET) $ 0.046587 4.75%
mantra-dao
MANTRA (OM) $ 3.76 3.85%
whitebit
WhiteBIT Coin (WBT) $ 24.37 0.66%
monero
Monero (XMR) $ 190.32 1.31%
bittensor
Bittensor (TAO) $ 468.16 3.84%
dai
Dai (DAI) $ 0.999608 0.02%
fetch-ai
Artificial Superintelligence Alliance (FET) $ 1.30 5.16%
arbitrum
Arbitrum (ARB) $ 0.763106 5.91%
ethena
Ethena (ENA) $ 1.08 10.50%