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.

Problem when training: Somehow training_orig_images become colored

See original GitHub issue

Firstly, thank you for your tremendous work on colorization. It gives me a lot of new ideas.

Here is my problem, I have used your training code for my own training process. I have noticed that it generate scaled images like 128*128 or 256*256 before training process and it takes a lot of time. But when I train on my own dataset, the BlackAndWhiteTransform() transformation is not working. The input image is become colorful. So the whole training is become meaningless.

And I did add BlackAndWhiteTransform() to all my progressive GANs.

x_tfms = [BlackAndWhiteTransform()]
scheds.extend(GANTrainSchedule.generate_schedules(szs=[64, 64],
                                                  bss=[64, 64],
                                                  path=IMAGENET,
                                                  x_tfms=x_tfms,
                                                  extra_aug_tfms=extra_aug_tfms,
                                                  keep_pcts=[1.0,1.0],
                                                  save_base_name=proj_id,
                                                  c_lrs=c_lrs,
                                                  g_lrs=g_lrs,
                                                  lrs_unfreeze_factor=lrs_unfreeze_factor,
                                                  gen_freeze_tos=gen_freeze_tos))

I don’t know what the problem is, please help me. Thank you very much.

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
janticcommented, Dec 6, 2018

The x_tfms are dynamic, so it shouldn’t have anything to do with the tmp folder. If you can replicate it as a legit issue I’ll certainly try to hunt it down.

0reactions
janticcommented, Mar 30, 2019

@ChakriMuthyala It turns out that very soon there will be an update to DeOldify that should help you out quite a bit. The short of it is that you will be able to take the network having been pertained on Imagenet for colorization (which has over a million images), and then fine tune it with the anime images. I haven’t tried this specifically yet but I’m almost certain it should work great. The fine tuning would first consist of pertaining with non-gan training generator only, then pertaining the critic to do binary classification on generated vs real images. Finally you do the (no)GAN training to top it off, which will be described in detail in the readme.

Read more comments on GitHub >

github_iconTop Results From Across the Web

itten's twelve hue subtractive color wheel
In theory, equal mixtures of subtractive primaries should result in black, however, when mixing red, blue, and yellow primaries together, the resulting mixture ......
Read more >
These Algorithms Look at X-Rays—and Somehow Detect ...
Medical data used to train algorithms often bears traces of racial inequalities in disease and medical treatment, due to historical and ...
Read more >
Change the Color of Visited Links
Summary: People get lost and move in circles when websites use the same link color for visited and new destinations. To reduce navigational...
Read more >
What Is Critical Race Theory, and Why Is It Under Attack?
As with CRT criticisms, the fear was that students would be somehow harmed by exposure to these ideas. As the school-aged population became...
Read more >
Using Colors to Enhance The Training Experience
Whether it be PowerPoint slide backgrounds, markers for flipcharts, or bright colored handouts, different colors can elicit different responses in people.
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