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.

Tuning parameters for logo dataset

See original GitHub issue

Hi! First off, thank you for being so engaged and active with folks’ issues.

I’m training on a dataset of 3k Japanese flag logos, plus their rotations of 90, 180, and 270 degrees for 12k total images.

I generally experience very quick mode collapse, often within the first 5k iterations. The one result that it does produce is pretty nice, though! unet_stylegan2 --data jpegs/ --attn-layers [1,2] 39k iterations: image

Increasing the batch size and gradient accumulate every has reduced it to partial mode collapse. The catch is I’m training on colab, and this can be unworkably slow depending on the GPU (30 secs per iteration) unet_stylegan2 --data jpegs/ --batch-size 32 --gradient-accumulate-every 8 --cl-reg --attn-layers [1,2]

24k iterations image

Do you have any tuning suggestions for increasing speed and avoiding mode collapse? The results at 24k (above) are promising, but definitely need a lot more refining!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
erdavis1commented, Nov 10, 2020

Haha, if only I could!

I ended up being pretty happy with the results of this run, even though it was fairly slow (~7 sec/iter if I got a V100)

!unet_stylegan2 --data jpegs/ --attn-layers [1,2] --batch-size 32 --gradient-accumulate-every 8 --aug-prob 0.25 --aug-types [translation,cutout,color]

Closing the issue since I’m satisfied with the output.

17k: image

1reaction
erdavis1commented, Oct 28, 2020

Thanks! I’ll try running that today and report back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parameters Tuning — LightGBM 3.3.3.99 documentation
This page contains parameters tuning guides for different scenarios. ... By default, when a LightGBM Dataset object is constructed, some features will be ......
Read more >
Understanding LightGBM Parameters (and How to Tune Them)
I've been using lightGBM for a while now. It's been my go-to algorithm for most tabular data problems. The list of awesome features...
Read more >
Tuning the search parameters - Albumentations Documentation
Tuning the search parameters¶. The search.yaml file contains parameters for the search of augmentation policies. Here is an example search.yaml for image ...
Read more >
Auto-Tuning Image Attributes and Model Parameters for ...
We design a novel dynamic threshold mechanism in a multi-branch RL agent to effectively tune parameters of image qualities (for object detection) ...
Read more >
Is hyperparameter tuning on sample of dataset a bad idea?
Overall I think that tuning the hyperparameters on a subset is not ideal but can potentially lead to relatively good results without having...
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