question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possibly broken unet2+

See original GitHub issue

It seems that unet1 progresses quickly. On my dataset, within 10-20 epochs I can get pretty good results at 64px:

image

But when trying unet2, the results are poor even after more than 20-40 epochs:

image

Here’s another example of unet2 of mel-spectograms after many many steps:

imagen_158_84_loss0 02229

Granted, it is possible that unet1 results also look similar, but it’s hard to tell with the blur going on. I assume that’s the result of the noising function? Is there a way to turn off the noising functionality during sample if stop_at_unet is specified at 1? That said, with the spectogram, unet1 produces very good blacks in the padding area, but unet2 can’t get it right.

I know other’s have voiced issues with unet2 as well. Here are my unet2 settings for reference:

unet2 = dict(
            dim=128,
            cond_dim=512,
            dim_mults=(1, 2, 3, 4),
            cond_images_channels=cond_images_channels,
            num_resnet_blocks=2,
            layer_attns=(False, False, False, True,
            layer_cross_attns=(True, True, True, True),
            # final_conv_kernel_size=1,
            memory_efficient=True
        )

Note: I’ve also tried with dim_mults (1, 2, 4, 6) and num_resnet_blocks=(2, 2, 4, 8) with similar results.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
deepglugscommented, Aug 8, 2022

My samples don’t look too bad either after lots of training. I’ve switched back and forth between random cropped unet2 training and full-size unet2 training and I think that has helped. Images aren’t perfect still, but there appears to be progress. Closing for now.

image

1reaction
integer753commented, Aug 6, 2022

Yes i’m using the non-elucidated imagen at the moment. Here is one of the results i have at the moment, but i need to retrain a little bit because i couldn’t transfer all my layers to the new version, so things are a bit mangled, i’ll post something when i have better results. In any case the upscaler is working for me now!

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shallow Dilated with Attention Unet2.5D for Brain Tumor ...
the 3D image is broken into 64 × 64 × 64 size. This paper proposes an architecture that focuses on segmenting brain tumors...
Read more >
Official - UNet Deprecation Thread | Page 5 - Unity Forum
I'm tasked with creating a LAN networking backend for future projects, which is set to be complete in approximately 6 months. Most of...
Read more >
Ben-Hur (1959 film) - Wikipedia
Vidal broke the scene in two, so that the men first reunite at the Castle Antonia and then later argue and end their...
Read more >
Re: [libreoffice-users] missing checkboxes and radio-buttons ...
For one thing, I don't have any checkboxes in the options dialogues. Catch-22 maybe :-{ Help please? -- Mike Scott (unet2 <at> [deletethis] ......
Read more >
Confusion about using .clone - PyTorch Forums
(x + F(x)) --> Unet1 --> loss#1(y+ F -1 (y.clone())) --> Unet2 --> loss#2(z+ ... Maybe the computational graph is broken and network...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found