Bagel: Call for Bad Cases of BAGEL

Welcom to Discord

<div align="center"> </div>

Welcom to Wechat

<div align="center"> </div>

We are collecting failure or bad cases of the BAGEL model to better understand its current limitations and to help advance multimodal AI research.

If you have encountered situations where BAGEL performs poorly or produces unexpected results, please share them in the comments below. Kindly organize each case using the following format:

Problem:
The problem of the bad case.

Prompt:
The input text you provided.

Image:
The related visual input.

Hyperparameters: The inference hyperparameters include those in inference_hyper, random seed (if possible), and whether to enable the thinking mode.

Response:
The output generated by BAGEL.

Your examples are invaluable for identifying edge cases, improving BAGEL’s robustness, and ultimately delivering a more powerful and user-friendly multimodal foundation model to the community.

Thank you for your support and contributions!


About Inference Hyperparameters:

  • cfg_text_scale: Controls how strongly the model follows the text prompt. 1.0 disables text guidance. Typical range: 4.0–8.0.
  • cfg_image_scale: Controls how much the model preserves input image details. 1.0 disables image guidance. Typical range: 1.0–2.0.
  • cfg_interval: Fraction of denoising steps where CFG is applied. Later steps can skip CFG to reduce computation. Typical: [0.4, 1.0].
  • timestep_shift: Shifts the distribution of denoising steps. Higher values allocate more steps at the start (affects layout); lower values allocate more at the end (improves details).
  • num_timesteps: Total denoising steps. Typical: 50.
  • cfg_renorm_min: Minimum value for CFG-Renorm. 1.0 disables renorm. Typical: 0.
  • cfg_renorm_type: CFG-Renorm method:
    • global: Normalize over all tokens and channels (default for T2I).
    • local: Normalize per channel.
    • text_channel: Like local, but only applies to text condition (good for editing, may cause blur).
  • If edited images appear blurry, try global CFG-Renorm, decrease cfg_renorm_min or decrease cfg_scale.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 10
  • Comments: 56

Most upvoted comments

it seems like the nsfw filter on the demo web page dont work correctly

Image

强烈建议增加一个好结果的show

INT-8 vs full precision. (24GB vs 32.5GB VRAM)

Image

Image

@Manni1000 I ran it locally on 3090’s:

Describe this image in detail

The image depicts a green printed circuit board (PCB) with intricate pathways and components etched onto its surface. The board features a detailed illustration of an animated character, which appears to be a stylized, cartoonish figure with a surprised or excited expression. The character is drawn in a way that mimics the layout of the PCB, with the pathways and components forming part of the character’s body and clothing. The character has a flower in their hair and is wearing a dress with a skirt that resembles a circuit board pattern. The board also includes text labels, such as “[A-2] Processor,” indicating specific components or areas of the board. The overall design combines elements of electronics and animation, creating a unique and visually striking piece.

This model is really impressive!

Hello, thanks for your impressive work and I appreciate its great contribution!

I have used your inference.ipynb code and tested some Image editing cases (both input images and prompts come from the official website, but with different pairs). My hyper-params are:

inference_hyper=dict(
    cfg_text_scale=4.0,
    cfg_img_scale=2.0,
    cfg_interval=[0.0, 1.0],
    timestep_shift=4.0,
    num_timesteps=50,
    cfg_renorm_min=1.0,
    cfg_renorm_type="text_channel",
)

However, I found some cases to-be-improved. It might be divided into following types:

  • 1 instruction following performance is not satisfying. Image
  • 2 The overall output is blur.

Image

  • 3 The editing area is blur.

Image

  • 4 Some typical area still suffers from artifacts (e.g. hands)

Image

Could you please give me some hint for improvements? Again, appreciate a lot to this impressive work!

@eaeful Hi, thanks for the feedback.

When generating a new image, the correct way to use our demo is to create a new session instead of using the old one. The chat history will affect the generation of the new image.

I have tried using the prompts you provided and generate them seperately in different sessions. Here are the results (in single run):

Image Hope this can address your concerns.

Thank you, I tried and it was indeed like this, so there should be no problem

@yinglang Hi, thanks for the feedback! For this case, our model performs better with larger cfg scale or set the cfg_renorm_min to 1.0, here is a summarized guideline.

See my trials below: Image

INT-8 vs full precision. (24GB vs 32.5GB VRAM)

@gapeleon That’s so cool! How did you achieve this, and how much faster is it?

It turned red, but it didn’t feel natural enough

@liuguicen Good catch! Our BAGEL tends to preserve character details. As you can see, BAGEL will identify the area where the hair is located (the oil painting is not entirely accurate) and turn it red, while IC-Edit will turn the hair into curly hair.

You can try changing the prompt, such as “Make her hair become red curly hair.”, which is the effect shown in the right picture below (with the same seed=42 as the left picture).

Image

The reflection is wrong, and the text is wrong. A sign is sitting on a bathroom countertop beside a mirror. The sign says: "REFLECT ME". In the mirror, the sign's text is visible in reverse. Image

Shadows are wrong. A hand is holding a pair of scissors. The hand and scissors are casting a shadow onto the wall behind them. The scene is a sunny outdoors image of a hand, scissors, and shadow on a wall. Image Image

@2793145003 棒,这个domain有点特别,训练数据比较少~

BTW,CFG Renorm min建议设成0,会减缓过曝现象

<div align="center"> </div> <div align="center"> </div>

很欣慰,和我用画图改图的效果差不多bushi

@2793145003 可以提供下原图供我们debug嘛

@2793145003 可以尝试把cfg_renorm_min设置为0,对于一般的编辑尽量不开think,对于复杂prompt可以拆解多次迭代,效果也会好些

下面是一次roll的结果

感谢回复,我这边的尝试结果是重新生成的结果会更好,但感觉Bagel不是很理解风格参考,人物和色彩会明显卡通化。

Image

很欣慰,和我用画图改图的效果差不多bushi

@2793145003 可以提供下原图供我们debug嘛

@2793145003 可以尝试把cfg_renorm_min设置为0,对于一般的编辑尽量不开think,对于复杂prompt可以拆解多次迭代,效果也会好些

下面是一次roll的结果

Image

ChatGPT is SOTA / closed source though. I haven’t seen anything better than this open weights.

The hands are still not great

@kabachuha Good catch! Anime editing is very difficult. Many of the anime characters in the data we collected also have incorrect hand depictions. We will find ways to solve this problem in the future.

Hello, thanks for your impressive work and I appreciate its great contribution!

I have used your inference.ipynb code and tested some Image editing cases (both input images and prompts come from the official website, but with different pairs). My hyper-params are:

inference_hyper=dict( cfg_text_scale=4.0, cfg_img_scale=2.0, cfg_interval=[0.0, 1.0], timestep_shift=4.0, num_timesteps=50, cfg_renorm_min=1.0, cfg_renorm_type=“text_channel”, ) However, I found some cases to-be-improved. It might be divided into following types:

@YIYANGCAI Hi! We recommend setting cfg_renorm_min=0, which can help avoid image blur, as mentioned here. Note that chrysanthemum is also Japanese national flower.

Image

For other cases involving blurry areas or incorrect objects, please try using different seeds. Since we do not apply RLHF, experimenting with different seeds can help improve the success rate.

Comparison of accuracy and visual quality across open-source text-to-image generators. (Improved Bagel settings for best results and included times.)

A trading card from a trading card game. The title of the card at the top says: "GOBLIN FIEND". The card art shows a green goblin with red eyes holding a knife. Under the art is a text panel. The text panel has the text: "The goblin fiend loves the taste of fried foods and does not like vegetables." At the bottom-right corner of the card is a number panel. The number panel has an icon of a sword, and the number 7. The card is polished and well designed, with highly detailed art and text in a clear, crisp font.

Image

The model cannot do transform: The image should be upside-down.

The image is upside down. It is an image of a man standing in the street smiling, wearing a business suit; but the entire image is upside down. It has been flipped and mirrored vertically in a photo-editing software.

Image

Thank you for your good work. These are very hard unsolved problems that cannot be solved by making the model bigger or using more data. I hope that one day a model can solve these problems.

The model does not do negation: “no wheels”; it will see the word “wheels” and add wheels.

A futuristic car does not have any wheels. Instead of wheels, under the hubs are empty spaces where the wheels should be. The futuristic car has glowing blue elements and shiny chrome. The background is a futuristic city.

Image

The clock numbers are amazing! But the time is wrong.

A round clock is hanging on a wall, showing the time 3 o'clock. The clock has clearly printed numbers around the rim. The clock stems form a right angle. The long minute stem is pointing up at the "12" mark. The short hour stem is pointing right at the "3" mark.

Image

The dice are wrong. Should be 3 dice with 6 pips: ⚅⚅⚅

There are three dice sitting on a table. Each dice shows six pips.

Image

很欣慰,和我用画图改图的效果差不多bushi

Image

Env: torch: 2.5.1+cu118 Python: 3.10.14

Run inference.ipynb got bad case (deformed hands and blur hands) I run the image generation for many times, but never get a good case. Is there something wrong?

<div style="display: flex;"> Image 1 Image 2 Image 3 </div>

While Flux got result for just one time running. Image

@causalfusion

Image

@kabachuha The source image is fairly small (256 × 320). In the demo it’s upscaled so the shorter side is 512 px, which can introduce blur. If you run the model locally, you can ask for a higher output size—setting the longest side to 1024 px usually gives the best results.

Btw, sometimes thinking mode is not helpful for easy editing tasks.

Here are my trials:

On the demo (512x640) Image

On my local machine (816 x 1024) Image

Prompt(提示词): make this woman eating pizza in a restaurant, with a happy expression, wearing a red dress and a hat, with a beautiful > > background of a city skyline at sunset

@xizaoqu Can you provide you hyperparameters? Here’s is my output with thinking:

import random
import numpy as np

seed = 42
random.seed(seed)
np.random.seed(seed)
torch.manual_seed(seed)
if torch.cuda.is_available():
    torch.cuda.manual_seed(seed)
    torch.cuda.manual_seed_all(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

inference_hyper=dict(
    max_think_token_n=1000,
    do_sample=False,
    text_temperature=0.3,
    cfg_text_scale=4.0,
    cfg_img_scale=2.0,
    cfg_interval=[0.4, 1.0],
    timestep_shift=3.0,
    num_timesteps=50,
    cfg_renorm_min=0.0,
    cfg_renorm_type="text_channel",
)
<think>
The user wants the woman to be depicted in a restaurant setting, eating pizza, with a happy expression. The red dress and hat should remain consistent, while the background shifts to a vibrant city skyline at sunset. The pose and overall composition should stay similar to the original image.
</think>

Image