Diception icon indicating copy to clipboard operation
Diception copied to clipboard

When will the training code be released?

Open suiuko opened this issue 1 year ago • 4 comments

When will the training code be released?

suiuko avatar Nov 01 '25 11:11 suiuko

Hello @suiuko, sorry for the late response.

We are currently still processing the approval procedure of releasing. But actually, the training code is quite simple, primarily because our inference code already lays out the logic very clearly. If you want to get it working as soon as possible, I'm confident you could quickly implement a version using an open-source training framework like Accelerate. :)

If you meet any problem when implement the training code, I'm very glad to help.

volcverse avatar Nov 15 '25 16:11 volcverse

Hello @volcverse, any updates on the training code release. I have been trying to write it myself but its output is very bad (not even instance segmentation). When using VAE for instance rgb (where each instance are assign random number), for example 64 distinct color, there are more than 200,000 distinct color on the output of the decoder. Do you observe anything closed to this at your case ?

Nuna7 avatar Dec 22 '25 14:12 Nuna7

hi @Nuna7, thank you for your question.

First, regarding the VAE decoder issue, we didn't observe that specific behavior in our experiments. I suggest looking at the official SD3 VAE implementation in the diffusers library, as we used that as our primary reference: here

Secondly, for the training pipeline itself, you can refer to this script for guidance: here

Please feel free to ask if you have further questions. Although the release is currently blocked, I'm more than happy to help you debug or solve specific issues as much as I can.

volcverse avatar Dec 23 '25 08:12 volcverse

Hey @volcverse, Thanks for the reference.

I try implementing the training code, postprocessing, evaluation code etc for cell instance segmentation with each instance having different color. When I run VAE on the rgb mask (segmentation mask), (example) the 9 unique in original become 261695 in decoded version. I guess this is due to floating point difference.

In case you got any chance and time, can you look the implementation to see if I had some critical mistakes (very likely). I use pannuke and nuinsseg dataset for this task.

You can find my entire codebase here : https://github.com/Nuna7/Diffusion-Nuclei-Segmentation/tree/main

I evaluate with Dice score and Aggregated Jaccard Index and it produce decent result in some case, while failed in several case. I guess this can be due to the nature of the task like natural image to pathological images, small tiny objects and the VAE resolution etc and definitely implementation mistakes. Would really appreciate in case you could help.

Nuna7 avatar Jan 07 '26 12:01 Nuna7