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.

[Feat] Having a kornia.nn module to include all module-like APIs.

See original GitHub issue

Currently, most APIs are scattered in different files. Also, we are mixing the functional APIs and module-like APIs. Should we have a kornia.nn to split the module-like APIs out of functional ones?

  • For a simple starter, we may have only __init__.py inside the kornia.nn to create a shortcut for users. To have something like:

    from kornia.augmentation import (
        RandomHorizontalFlip,
        RandomVerticalFlip,
        RandomErasing,
        RandomGrayscale,
        ColorJitter,
        RandomRotation,
        RandomCrop,
        RandomResizedCrop,
    )
    from kornia.color.normalize import (
        Normalize,
        Denormalize
    )
    from kornia.gray import (
        RgbToGrayscale,
        BgrToGrayscale
    )
    ...
    
  • Eventually, to have a file structure like below to separate those two different APIs:

    • kornia
      • nn
        • agumentation
        • color
        • feature
        • filters
        • geometry
      • augmentation
      • color
      • feature
      • filters
      • geometry

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
edgarribacommented, Aug 29, 2020

@yutayamazaki yes, please go ahead. Just we need to take care about potential cycle dependencies. /cc @shijianjian

0reactions
shijianjiancommented, Nov 17, 2021

I am thinking to resume this given the needs of using Kornia preprocessing/augmentation/operation as layers.

More or less, at least to have a summary list like:

Operation Diffrentiable JIT ONNX
GrayToRGB Y Y Y
Equalize N Y Y
Affine Y Y N
Read more comments on GitHub >

github_iconTop Results From Across the Web

kornia.x - Read the Docs
The API is experimental and subject to be modified based on the needs of kornia models. Parameters. model ( Module ) – the...
Read more >
block chips off old - CSDN
The command “modinfo -p ${modulename}” shows a current list of all parameters of a loadable ... A lot of drivers have their options...
Read more >
unique biological features: Topics by WorldWideScience.org
In contrast, germ cells have only one specific function; to preserve the species by ... process components to the entrance of any selected...
Read more >
Modules — PyTorch 1.13 documentation
This note describes modules, and is intended for all PyTorch users. ... Note that modules are not required to have state, and can...
Read more >
Computer + Video Games
has been Out meeting one of his all time heroes — Brian Mo ria rt y ... adventures — including the game of...
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