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.

Implement p_mode="per_example" in Compose()

See original GitHub issue

Hi, thanks for this great software!

Is per_example supported currently or not? With the ValueError raised in Compose (https://github.com/asteroid-team/torch-audiomentations/blob/master/torch_audiomentations/core/composition.py#L30), I assume it is not supported in Compose. But the readme says it is supported - does it mean that it’s supported in individual transforms but not in Compose?

Maybe it’s worth using it in the example code in readme 😃

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
keunwoochoicommented, Jul 23, 2021

Agree that p_mode="per_example" would be the most relevant. I changed the figure on my side.

Related to that, I think p_mode="per_example" would be quite necessary in Compose(). I don’t know the implementation deeply enough but why would it be not well-defined? I’d assume, if Compose(p_mode="per_example", p=0.8), 20% of examples would be never augmented while 80% of them would go through the stochastic augmentation pipeline.

0reactions
iver56commented, Oct 29, 2021

I’m glad you like it 😃 If you want to make a contribution, that would be welcome

Read more comments on GitHub >

github_iconTop Results From Across the Web

Locally scoped data with CompositionLocal | Jetpack Compose
CompositionLocal is a tool for passing data down through the Composition implicitly. In this page, you'll learn what a CompositionLocal is in more...
Read more >
Divider component not found in Android Jetpack Compose ...
I'm currently working on an Android UI entirely Compose based. I need to put a Divider component between 2 lists implemented as LazyColumn ......
Read more >
7 Useful Android Jetpack Compose Libraries You Should Use ...
In my opinion, a good project makes use of some of the best libraries available. Jetpack compose is the Android family's newest and...
Read more >
Build adaptive apps with Jetpack Compose - Google Codelabs
padding() ). We use the Resizable emulator for this codelab, as it lets us switch between different types of devices and screen sizes....
Read more >
API Guidelines for Jetpack Compose
equals() for objects is always a correct implementation of this contract. Jetpack Compose framework development and Library development SHOULD ...
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