Skip to content

Conversation

blepping
Copy link
Contributor

@blepping blepping commented Sep 2, 2025

This patch adds support for Chroma Radiance, a pixel-space model adapted from Chroma, which is showing very promising results (although it is relatively early in training). The performance is quite close to Chroma.

I've tried to reuse existing code as much as possible so this is fairly self-contained. A pretty good chunk of it is copied from the implementation at https://github.com/lodestone-rock/flow - I can't take any credit for those parts.

The model can be downloaded at: https://huggingface.co/lodestones/chroma-debug-development-only/tree/main/radiance

No difference from a normal Chroma workflow except you need to use the ChromaRadianceStubVAE node instead of loading a VAE. It's not a real VAE, it just moves the channel dimension and scales the input image values to -1..1 for encode and the reverse for decode. There are also ChromaRadianceLatentToImage and ChromaRadianceImageToLatent nodes that do the same thing which could be removed. Lodestone Rock (Chroma and Radiance creator) said he preferred leaving them, I don't have a preference.

There is also a ChromaRadianceOptions node that allows overriding some parameters. The main one of interest is likely nerf_tile_size: setting it as high as possible without OOMing is beneficial for performance. I've been told that Blackwell benefits from having it set to 64, the default is currently 32.

I have a few more things I want to do before I'd consider it ready to merge (mostly minor stuff like better tooltips for the nodes) so this is starting out as a draft pull. Any comments/feedback are very welcome!


edit: Going to move this out of draft status now. Possible things to resolve before merging:

  • This subclasses the existing Chroma module instead of just copying the code. I try to use code when possible, but this does mean future modifications to Chroma need to take Radiance using it into account. Also, I don't think there is an existing precedent for doing it this way in the existing code. I can change this if necessary.
  • Possibly remove the ChromaRadianceLatentToImage and ChromaRadianceImageToLatent nodes to clean up the node list. They aren't doing anything unique, on the other hand they are just wrappers around the existing conversion code so maintaining them doesn't add much of a burden and removing them would possibly break existing workflows.
  • ChromaRadianceStubVAE - I'm not good at naming stuff so this may not be the best name. It would be kind of a pain to change now since it would break the existing workflows (though changing the display name would be free). If necessary this can be changed.
  • The memory usage factor for the model is a guesstimate that seems to work fairly well.
  • Default values for NeRF tile size (32) and NeRF head dtype (overriding it to float32 was recommended by Lodestone, which is what does currently).
  • Code style/implementation details? I mostly tried to stick with what the existing code does.

Let me know if anything needs to be changed to make this mergeable. General comments/feedback are also welcome, of course.

@blepping blepping force-pushed the feat_support_chroma_radiance branch 2 times, most recently from 70a17b1 to 85bfc39 Compare September 5, 2025 02:38
@yamatazen
Copy link

Can you show some generation examples?

@without-ordinary
Copy link

Can you show some generation examples?

2025-09-09_00008_

@yamatazen
Copy link

Can you show some generation examples?

2025-09-09_00008_

The image is not loading

@yamatazen
Copy link

Can you show some generation examples?

2025-09-09_00008_

The image is not loading

Oh it loaded now

@blepping blepping force-pushed the feat_support_chroma_radiance branch from 7e4045e to 747abae Compare September 9, 2025 20:12
@lodestone-rock
Copy link

ComfyUI_temp_omcom_00049_ ComfyUI_temp_omcom_00089_ ComfyUI_temp_omcom_00090_ ComfyUI_temp_omcom_00091_ ComfyUI_temp_tqivg_00131_

@blepping blepping force-pushed the feat_support_chroma_radiance branch from 6e5f987 to ca5d3ff Compare September 12, 2025 21:32
@blepping
Copy link
Contributor Author

This merges but probably needs to be updated for #9639 to work properly. I will try to do that today. Not very likely it would have been merged in the next few hours, but mentioning this just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants