I have the Kornia RandomMotionBlur augmentation. How can I pick the angle variable…
- User
I have the Kornia RandomMotionBlur augmentation. How can I pick the angle variable randomly?
- Assistant
Kornia’s augmentation modules are designed to sample random values for parameters if you provide a range (typically as a tuple) instead of a fixed value. For the
RandomMotionBluraugmentation, you can pass a tuple for theangleparameter and Kornia will automatically pick a random angle within that range on each call.For example, if you want the motion blur to have an angle between -45° and 45°, you can initialize it like this:
python
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.