mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-21 02:29:23 +01:00
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/11199857 * init quadtree code * quadtree attention image matching can run in modelscope pipeline * jit build quadtree attention * update license info
12 lines
344 B
Python
12 lines
344 B
Python
# This implementation is adopted from LoFTR,
|
|
# made public available under the Apache License, Version 2.0,
|
|
# at https://github.com/zju3dv/LoFTR
|
|
|
|
from yacs.config import CfgNode as CN
|
|
|
|
|
|
def lower_config(yacs_cfg):
|
|
if not isinstance(yacs_cfg, CN):
|
|
return yacs_cfg
|
|
return {k.lower(): lower_config(v) for k, v in yacs_cfg.items()}
|