Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
null | AICP-main/veins/src/veins/modules/phy/Decider80211p.cc | //
// Copyright (C) 2011 David Eckhoff <eckhoff@cs.fau.de>
// Copyright (C) 2012 Bastian Bloessl, Stefan Joerer, Michele Segata <{bloessl,joerer,segata}@ccs-labs.org>
// Copyright (C) 2018 Fabian Bronner <fabian.bronner@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License... | 14,961 | 34.122066 | 205 | cc |
null | AICP-main/veins/src/veins/modules/phy/Decider80211p.h | //
// Copyright (C) 2011 David Eckhoff <eckhoff@cs.fau.de>
// Copyright (C) 2012 Bastian Bloessl, Stefan Joerer, Michele Segata <{bloessl,joerer,segata}@ccs-labs.org>
// Copyright (C) 2018 Fabian Bronner <fabian.bronner@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License... | 7,753 | 33.7713 | 212 | h |
null | AICP-main/veins/src/veins/modules/phy/Decider80211pToPhy80211pInterface.h | //
// Copyright (C) 2011 David Eckhoff <eckhoff@cs.fau.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published b... | 1,229 | 28.285714 | 76 | h |
null | AICP-main/veins/src/veins/modules/phy/DeciderResult80211.h | //
// Copyright (C) 2007 Technische Universitaet Berlin (TUB), Germany, Telecommunication Networks Group
// Copyright (C) 2007 Technische Universiteit Delft (TUD), Netherlands
// Copyright (C) 2007 Universitaet Paderborn (UPB), Germany
// Copyright (C) 2014 Michele Segata <segata@ccs-labs.org>
//
// Documentation for t... | 3,384 | 27.445378 | 116 | h |
null | AICP-main/veins/src/veins/modules/phy/NistErrorRate.cc | /*
* Copyright (c) 2010 The Boeing Company
* Copyright (c) 2014 Michele Segata <segata@ccs-labs.org>
*
* SPDX-License-Identifier: GPL-2.0-only
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Soft... | 5,228 | 31.277778 | 318 | cc |
null | AICP-main/veins/src/veins/modules/phy/NistErrorRate.h | /*
* Copyright (c) 2010 The Boeing Company
* Copyright (c) 2014 Michele Segata <segata@ccs-labs.org>
*
* SPDX-License-Identifier: GPL-2.0-only
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Soft... | 3,531 | 29.448276 | 111 | h |
null | AICP-main/veins/src/veins/modules/phy/PhyLayer80211p.cc | //
// Copyright (C) 2011 David Eckhoff <eckhoff@cs.fau.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published b... | 14,532 | 36.94517 | 168 | cc |
null | AICP-main/veins/src/veins/modules/phy/PhyLayer80211p.h | //
// Copyright (C) 2011 David Eckhoff <eckhoff@cs.fau.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published b... | 6,210 | 32.755435 | 131 | h |
null | AICP-main/veins/src/veins/modules/phy/SampledAntenna1D.cc | //
// Copyright (C) 2016 Alexander Brummer <alexander.brummer@fau.de>
// Copyright (C) 2018 Fabian Bronner <fabian.bronner@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or... | 4,915 | 38.328 | 196 | cc |
null | AICP-main/veins/src/veins/modules/phy/SampledAntenna1D.h | //
// Copyright (C) 2016 Alexander Brummer <alexander.brummer@fau.de>
// Copyright (C) 2018 Fabian Bronner <fabian.bronner@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or... | 5,067 | 41.233333 | 183 | h |
null | AICP-main/veins/src/veins/modules/utility/BBoxLookup.cc | //
// Copyright (C) 2019 Dominik S. Buse <buse@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published... | 8,075 | 39.38 | 201 | cc |
null | AICP-main/veins/src/veins/modules/utility/BBoxLookup.h | //
// Copyright (C) 2019 Dominik S. Buse <buse@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published... | 3,260 | 37.364706 | 164 | h |
null | AICP-main/veins/src/veins/modules/utility/Consts80211p.h | //
// Copyright (C) 2011 David Eckhoff <eckhoff@cs.fau.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published b... | 4,879 | 27.87574 | 112 | h |
null | AICP-main/veins/src/veins/modules/utility/ConstsPhy.h | //
// Copyright (C) 2014 Michele Segata <segata@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publishe... | 6,167 | 24.17551 | 76 | h |
null | AICP-main/veins/src/veins/modules/utility/HasLogProxy.cc | //
// Copyright (C) 2018 Christoph Sommer <sommer@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publis... | 1,129 | 28.736842 | 76 | cc |
null | AICP-main/veins/src/veins/modules/utility/HasLogProxy.h | //
// Copyright (C) 2018 Christoph Sommer <sommer@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publis... | 1,230 | 27.627907 | 76 | h |
null | AICP-main/veins/src/veins/modules/utility/MacToPhyControlInfo11p.h | //
// Copyright (C) 2018-2019 Dominik S. Buse <buse@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publ... | 1,672 | 30.566038 | 86 | h |
null | AICP-main/veins/src/veins/modules/utility/SignalManager.h | //
// Copyright (C) 2019-2019 Dominik S. Buse <buse@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publ... | 4,271 | 36.80531 | 132 | h |
null | AICP-main/veins/src/veins/modules/utility/TimerManager.cc | //
// Copyright (C) 2018-2018 Max Schettler <max.schettler@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License ... | 5,749 | 26.644231 | 147 | cc |
null | AICP-main/veins/src/veins/modules/utility/TimerManager.h | //
// Copyright (C) 2018-2018 Max Schettler <max.schettler@ccs-labs.org>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License ... | 7,952 | 32.276151 | 217 | h |
null | AICP-main/veins/src/veins/modules/world/annotations/AnnotationDummy.cc | //
// Copyright (C) 2010 Christoph Sommer <christoph.sommer@informatik.uni-erlangen.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General ... | 1,155 | 33 | 84 | cc |
null | AICP-main/veins/src/veins/modules/world/annotations/AnnotationDummy.h | //
// Copyright (C) 2010 Christoph Sommer <christoph.sommer@informatik.uni-erlangen.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General ... | 1,280 | 28.113636 | 84 | h |
null | AICP-main/veins/src/veins/modules/world/annotations/AnnotationManager.cc | //
// Copyright (C) 2010 Christoph Sommer <christoph.sommer@informatik.uni-erlangen.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General ... | 13,280 | 31.235437 | 142 | cc |
null | AICP-main/veins/src/veins/modules/world/annotations/AnnotationManager.h | //
// Copyright (C) 2010 Christoph Sommer <christoph.sommer@informatik.uni-erlangen.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General ... | 4,754 | 24.564516 | 95 | h |
null | AICP-main/veins/src/veins/modules/world/traci/trafficLight/TraCITrafficLightInterface.cc | //
// Copyright (C) 2015-2018 Dominik Buse <dbuse@mail.uni-paderborn.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License ... | 9,949 | 34.663082 | 195 | cc |
null | AICP-main/veins/src/veins/modules/world/traci/trafficLight/TraCITrafficLightInterface.h | //
// Copyright (C) 2015-2018 Dominik Buse <dbuse@mail.uni-paderborn.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License ... | 5,743 | 42.515152 | 131 | h |
null | AICP-main/veins/src/veins/modules/world/traci/trafficLight/TraCITrafficLightProgram.cc | //
// Copyright (C) 2015-2018 Dominik Buse <dbuse@mail.uni-paderborn.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License ... | 1,782 | 29.220339 | 96 | cc |
null | AICP-main/veins/src/veins/modules/world/traci/trafficLight/TraCITrafficLightProgram.h | //
// Copyright (C) 2015-2018 Dominik Buse <dbuse@mail.uni-paderborn.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License ... | 2,019 | 27.055556 | 76 | h |
null | AICP-main/veins/src/veins/modules/world/traci/trafficLight/logics/TraCITrafficLightAbstractLogic.cc | //
// Copyright (C) 2015-2018 Dominik Buse <dbuse@mail.uni-paderborn.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License ... | 2,593 | 33.131579 | 107 | cc |
null | AICP-main/veins/src/veins/modules/world/traci/trafficLight/logics/TraCITrafficLightAbstractLogic.h | //
// Copyright (C) 2015-2018 Dominik Buse <dbuse@mail.uni-paderborn.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License ... | 1,860 | 32.232143 | 87 | h |
null | AICP-main/veins/src/veins/modules/world/traci/trafficLight/logics/TraCITrafficLightSimpleLogic.cc | //
// Copyright (C) 2015-2018 Dominik Buse <dbuse@mail.uni-paderborn.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License ... | 1,418 | 32 | 87 | cc |
null | AICP-main/veins/src/veins/modules/world/traci/trafficLight/logics/TraCITrafficLightSimpleLogic.h | //
// Copyright (C) 2015-2018 Dominik Buse <dbuse@mail.uni-paderborn.de>
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License ... | 1,791 | 32.185185 | 109 | h |
LiDAR2LiDAR | LiDAR2LiDAR-master/README.md | # LiDAR2LiDAR
For more calibration codes, please refer to the link <a href="https://github.com/PJLab-ADG/SensorsCalibration" title="SensorsCalibration">SensorsCalibration</a>
## Pipline

## Network
### Installation
```shell
# Install packages a... | 1,831 | 25.171429 | 160 | md |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/setup.py | from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup(
name='geotransformer',
version='1.0.0',
ext_modules=[
CUDAExtension(
name='geotransformer.ext',
sources=[
'geotransformer/extensions/extra/cloud/cloud.cpp... | 814 | 34.434783 | 90 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/data/Kitti/downsample_pcd.py | import os
import os.path as osp
import open3d as o3d
import numpy as np
import glob
from tqdm import tqdm
def main():
for i in range(11):
seq_id = '{:02d}'.format(i)
file_names = glob.glob(osp.join('sequences', seq_id, '*.bin'))
print("file_names:",file_names)
for file_name in tqdm... | 865 | 29.928571 | 76 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/data/road_scene/downsample_pcd.py | import os
import os.path as osp
import open3d as o3d
import numpy as np
import glob
from tqdm import tqdm
def main():
dataset_path = './unreal_world'
new_dataset_path = './downsampled/unreal_world'
all_data = os.listdir(dataset_path)
print("all_data:",len(all_data))
for file_name in tqdm(all_data)... | 2,904 | 38.256757 | 86 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/data/road_scene/metadata/train_val_test_split.py | import os
import random
all_data = os.listdir('/Download/GeoTransformer/GeoTransformer/data/Lidar2Lidar/downsampled/unreal_world/unreal_world')
random.shuffle(all_data)
print("all_data", len(all_data))
train_data = all_data[:1140]
val_data = all_data[1140:1520]
test_data = all_data[1520:]
train_txt = open('/Download/... | 1,398 | 45.633333 | 119 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/__init__.py | 0 | 0 | 0 | py | |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/backbone.py | import torch
import torch.nn as nn
from IPython import embed
from geotransformer.modules.kpconv import ConvBlock, ResidualBlock, UnaryBlock, LastUnaryBlock, nearest_upsample
class KPConvFPN(nn.Module):
def __init__(self, input_dim, output_dim, init_dim, kernel_size, init_radius, init_sigma, group_norm):
... | 4,299 | 44.744681 | 113 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/config.py | import os
import os.path as osp
import argparse
from easydict import EasyDict as edict
from geotransformer.utils.common import ensure_dir
_C = edict()
# common
_C.seed = 7351
# dirs
_C.working_dir = osp.dirname(osp.realpath(__file__))
_C.root_dir = osp.dirname(osp.dirname(_C.working_dir))
_C.exp_name = osp.basena... | 4,511 | 25.385965 | 154 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/dataset.py | from geotransformer.datasets.registration.threedmatch.dataset import ThreeDMatchPairDataset
from geotransformer.utils.data import (
registration_collate_fn_stack_mode,
calibrate_neighbors_stack_mode,
build_dataloader_stack_mode,
)
def train_valid_data_loader(cfg, distributed):
train_dataset = ThreeDMa... | 3,036 | 30.309278 | 91 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/eval copy.sh | # if [ "$3" = "test" ]; then
# python test.py --test_epoch=$1 --benchmark=$2
# fi
# python eval.py --test_epoch=$1 --benchmark=$2 --method=lgr
# for n in 250 500 1000 2500 5000; do
# python eval.py --num_corr=$n --benchmark=$1 --method=lgr
# done
# python test.py --snapshot=../../weights/geotransformer-3dmatch... | 1,533 | 35.52381 | 95 | sh |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/eval.py | import argparse
import os.path as osp
import time
import glob
import sys
import json
import torch
import numpy as np
from geotransformer.engine import Logger
from geotransformer.modules.registration import weighted_procrustes
from geotransformer.utils.summary_board import SummaryBoard
from geotransformer.utils.open3d... | 19,612 | 47.189189 | 127 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/eval.sh | # if [ "$3" = "test" ]; then
# python test.py --test_epoch=$1 --benchmark=$2
# fi
# python eval.py --test_epoch=$1 --benchmark=$2 --method=lgr
# # for n in 250 500 1000 2500; do
# # python eval.py --test_epoch=$1 --num_corr=$n --run_matching --run_registration --benchmark=$2
# # done
python test1.py --test_epoc... | 1,380 | 32.682927 | 101 | sh |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/eval_all.sh | for n in $(seq 20 40); do
python test.py --test_epoch=$n --benchmark=$1 --verbose
python eval.py --test_epoch=$n --benchmark=$1 --method=lgr
done
# for n in 250 500 1000 2500; do
# python eval.py --test_epoch=$1 --num_corr=$n --run_matching --run_registration --benchmark=$2
# done
| 294 | 35.875 | 99 | sh |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/eval_dgr.py | import argparse
import os.path as osp
import time
import glob
import sys
import json
import torch
import numpy as np
from geotransformer.engine import Logger
from geotransformer.modules.registration.procrustes import weighted_procrustes
from geotransformer.utils.summary_board import SummaryBoard
from geotransformer.u... | 15,037 | 45.99375 | 112 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/loss.py | import torch
import torch.nn as nn
from geotransformer.modules.loss import WeightedCircleLoss
from geotransformer.modules.ops.transformation import apply_transform
from geotransformer.modules.registration.metrics import isotropic_transform_error
from geotransformer.modules.ops.pairwise_distance import pairwise_distanc... | 7,978 | 45.660819 | 172 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/model.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from IPython import embed
from geotransformer.modules.ops import point_to_node_partition, index_select
from geotransformer.modules.registration import get_node_correspondences
from geotransformer.modules.sinkhorn import LearnableLogOptimalTransport
fro... | 16,238 | 45.133523 | 338 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/test.py | import argparse
import os.path as osp
import time
import torch
import numpy as np
import random
from geotransformer.engine import SingleTester
from geotransformer.utils.torch import release_cuda
from geotransformer.utils.common import ensure_dir, get_log_string
from dataset import test_data_loader,train_valid_data_lo... | 10,320 | 46.344037 | 248 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/trainval.py | import argparse
import time
import torch.optim as optim
from geotransformer.engine import EpochBasedTrainer
from config import make_cfg
from dataset import train_valid_data_loader
from model import create_model
from loss import OverallLoss, Evaluator
class Trainer(EpochBasedTrainer):
def __init__(self, cfg):
... | 2,166 | 33.396825 | 141 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/classification/__init__.py | 0 | 0 | 0 | py | |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.3dmatch.stage4.gse.k3.max.oacl.stage2.sinkhorn/classification/classification_model.py | import torch.nn as nn
import torch.nn.functional as F
# define model
class basic_block(nn.Module):
"""基本残差块,由两层卷积构成"""
def __init__(self,in_planes,planes,kernel_size=3,stride=1):
"""
:param in_planes: 输入通道
:param planes: 输出通道
:param kernel_size: 卷积核大小
:param stride: 卷积... | 3,374 | 33.438776 | 105 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.CROON.stage5.gse.k3.max.oacl.stage2.sinkhorn/backbone.py | import torch
import torch.nn as nn
from geotransformer.modules.kpconv import ConvBlock, ResidualBlock, UnaryBlock, LastUnaryBlock, nearest_upsample
class KPConvFPN(nn.Module):
def __init__(self, input_dim, output_dim, init_dim, kernel_size, init_radius, init_sigma, group_norm):
super(KPConvFPN, self).__i... | 5,227 | 40.824 | 113 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.CROON.stage5.gse.k3.max.oacl.stage2.sinkhorn/config.py | import argparse
import os
import os.path as osp
from easydict import EasyDict as edict
from geotransformer.utils.common import ensure_dir
_C = edict()
# random seed
_C.seed = 7351
# dirs
_C.working_dir = osp.dirname(osp.realpath(__file__))
_C.root_dir = osp.dirname(osp.dirname(_C.working_dir))
_C.exp_name = osp.b... | 4,299 | 24.903614 | 105 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.CROON.stage5.gse.k3.max.oacl.stage2.sinkhorn/dataset.py | from geotransformer.datasets.registration.CROON.dataset import Lidar2LidarDataset
from geotransformer.utils.data import (
registration_collate_fn_stack_mode,
calibrate_neighbors_stack_mode,
build_dataloader_stack_mode,
)
def train_valid_data_loader(cfg, distributed):
train_dataset = Lidar2LidarDataset... | 3,331 | 32.32 | 81 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.CROON.stage5.gse.k3.max.oacl.stage2.sinkhorn/eval.py | import sys
import json
import argparse
import glob
import os.path as osp
import time
import numpy as np
import torch
from config import make_cfg
from geotransformer.engine import Logger
from geotransformer.modules.registration import weighted_procrustes
from geotransformer.utils.summary_board import SummaryBoard
from... | 8,169 | 39.646766 | 115 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.CROON.stage5.gse.k3.max.oacl.stage2.sinkhorn/eval.sh | if [ "$2" = "test" ]; then
python test.py --test_epoch=$1
fi
python eval.py --test_epoch=$1 --method=lgr
| 109 | 21 | 43 | sh |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.CROON.stage5.gse.k3.max.oacl.stage2.sinkhorn/loss.py | import torch
import torch.nn as nn
from geotransformer.modules.ops import apply_transform, pairwise_distance
from geotransformer.modules.registration.metrics import isotropic_transform_error
from geotransformer.modules.loss import WeightedCircleLoss
class CoarseMatchingLoss(nn.Module):
def __init__(self, cfg):
... | 7,104 | 42.323171 | 112 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.CROON.stage5.gse.k3.max.oacl.stage2.sinkhorn/model.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from IPython import embed
from geotransformer.modules.ops import point_to_node_partition, index_select
from geotransformer.modules.registration import get_node_correspondences
from geotransformer.modules.sinkhorn import LearnableLogOptimalTransport
fro... | 15,089 | 43.777448 | 338 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.CROON.stage5.gse.k3.max.oacl.stage2.sinkhorn/test.py | import argparse
import os.path as osp
import time
import numpy as np
from geotransformer.engine import SingleTester
from geotransformer.utils.common import ensure_dir, get_log_string
from geotransformer.utils.torch import release_cuda
from config import make_cfg
from dataset import test_data_loader
from loss import ... | 3,903 | 37.27451 | 86 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.CROON.stage5.gse.k3.max.oacl.stage2.sinkhorn/trainval.py | import argparse
import time
import torch.optim as optim
from geotransformer.engine import EpochBasedTrainer
from config import make_cfg
from dataset import train_valid_data_loader
from model import create_model
from loss import OverallLoss, Evaluator
class Trainer(EpochBasedTrainer):
def __init__(self, cfg):
... | 2,120 | 32.666667 | 108 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.CROON.stage5.gse.k3.max.oacl.stage2.sinkhorn/classification/__init__.py | 0 | 0 | 0 | py | |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.CROON.stage5.gse.k3.max.oacl.stage2.sinkhorn/classification/classification_model.py | import torch.nn as nn
import torch.nn.functional as F
# define model
class basic_block(nn.Module):
"""基本残差块,由两层卷积构成"""
def __init__(self,in_planes,planes,kernel_size=3,stride=1):
"""
:param in_planes: 输入通道
:param planes: 输出通道
:param kernel_size: 卷积核大小
:param stride: 卷积... | 3,374 | 33.438776 | 105 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/backbone.py | import torch
import torch.nn as nn
from geotransformer.modules.kpconv import ConvBlock, ResidualBlock, UnaryBlock, LastUnaryBlock, nearest_upsample
class KPConvFPN(nn.Module):
def __init__(self, input_dim, output_dim, init_dim, kernel_size, init_radius, init_sigma, group_norm):
super(KPConvFPN, self).__i... | 5,227 | 40.824 | 113 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/config.py | import argparse
import os
import os.path as osp
from easydict import EasyDict as edict
from geotransformer.utils.common import ensure_dir
_C = edict()
# random seed
_C.seed = 7351
# dirs
_C.working_dir = osp.dirname(osp.realpath(__file__))
_C.root_dir = osp.dirname(osp.dirname(_C.working_dir))
_C.exp_name = osp.b... | 4,299 | 24.903614 | 105 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/dataset.py | from geotransformer.datasets.registration.kitti.dataset import OdometryKittiPairDataset
from geotransformer.utils.data import (
registration_collate_fn_stack_mode,
calibrate_neighbors_stack_mode,
build_dataloader_stack_mode,
)
def train_valid_data_loader(cfg, distributed):
train_dataset = OdometryKitt... | 3,361 | 32.62 | 87 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/eval.py | import sys
import json
import argparse
import glob
import os.path as osp
import time
import numpy as np
import torch
from config import make_cfg
from geotransformer.engine import Logger
from geotransformer.modules.registration import weighted_procrustes
from geotransformer.utils.summary_board import SummaryBoard
from... | 8,169 | 39.646766 | 115 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/eval.sh | if [ "$2" = "test" ]; then
python test.py --test_epoch=$1
fi
python eval.py --test_epoch=$1 --method=lgr
| 109 | 21 | 43 | sh |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/loss.py | import torch
import torch.nn as nn
from geotransformer.modules.ops import apply_transform, pairwise_distance
from geotransformer.modules.registration.metrics import isotropic_transform_error
from geotransformer.modules.loss import WeightedCircleLoss
class CoarseMatchingLoss(nn.Module):
def __init__(self, cfg):
... | 7,322 | 42.850299 | 112 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/model.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from IPython import embed
from geotransformer.modules.ops import point_to_node_partition, index_select
from geotransformer.modules.registration import get_node_correspondences
from geotransformer.modules.sinkhorn import LearnableLogOptimalTransport
fro... | 15,470 | 44.236842 | 338 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/test.py | import argparse
import os.path as osp
import time
import numpy as np
from geotransformer.engine import SingleTester
from geotransformer.utils.common import ensure_dir, get_log_string
from geotransformer.utils.torch import release_cuda
from config import make_cfg
from dataset import test_data_loader
from loss import ... | 4,316 | 38.605505 | 86 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/trainval.py | import argparse
import time
import torch.optim as optim
from geotransformer.engine import EpochBasedTrainer
from config import make_cfg
from dataset import train_valid_data_loader
from model import create_model
from loss import OverallLoss, Evaluator
class Trainer(EpochBasedTrainer):
def __init__(self, cfg):
... | 2,120 | 32.666667 | 108 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/classification/__init__.py | 0 | 0 | 0 | py | |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/classification/classification_model.py | import torch.nn as nn
import torch.nn.functional as F
# define model
class basic_block(nn.Module):
"""基本残差块,由两层卷积构成"""
def __init__(self,in_planes,planes,kernel_size=3,stride=1):
"""
:param in_planes: 输入通道
:param planes: 输出通道
:param kernel_size: 卷积核大小
:param stride: 卷积... | 3,374 | 33.438776 | 105 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/__init__.py | 0 | 0 | 0 | py | |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/datasets/__init__.py | 0 | 0 | 0 | py | |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/datasets/registration/__init__.py | 0 | 0 | 0 | py | |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/datasets/registration/CROON/__init__.py | from geotransformer.datasets.registration.CROON.dataset import Lidar2LidarDataset
__all__ = [
'Lidar2LidarDataset',
]
| 124 | 16.857143 | 81 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/datasets/registration/CROON/dataset.py | import os.path as osp
import random
import csv
import pandas as pd
from secrets import choice
# from mathutils import Matrix, Vector, Quaternion, Euler
import numpy as np
import torch.utils.data
import open3d as o3d
from geotransformer.utils.common import load_pickle
from geotransformer.utils.pointcloud import (
r... | 19,246 | 51.018919 | 203 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/datasets/registration/kitti/__init__.py | from geotransformer.datasets.registration.kitti.dataset import OdometryKittiPairDataset
__all__ = [
'OdometryKittiPairDataset',
]
| 136 | 18.571429 | 87 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/datasets/registration/kitti/dataset.py | import os.path as osp
import random
import csv
import pandas as pd
from secrets import choice
# from mathutils import Matrix, Vector, Quaternion, Euler
import numpy as np
import torch.utils.data
import open3d as o3d
from geotransformer.utils.common import load_pickle
from geotransformer.utils.pointcloud import (
r... | 5,521 | 38.726619 | 113 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/datasets/registration/modelnet/__init__.py | from geotransformer.datasets.registration.modelnet.dataset import ModelNetPairDataset
| 86 | 42.5 | 85 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/datasets/registration/modelnet/dataset.py | import os.path as osp
from typing import Dict, Optional
import numpy as np
import torch.utils.data
import open3d as o3d
from IPython import embed
from geotransformer.utils.common import load_pickle
from geotransformer.utils.pointcloud import random_sample_transform, apply_transform, inverse_transform, regularize_norm... | 10,405 | 41.647541 | 123 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/datasets/registration/threedmatch/__init__.py | from geotransformer.datasets.registration.threedmatch.dataset import ThreeDMatchPairDataset
# from geotransformer.datasets.registration.threedmatch.dataset_minkowski import ThreeDMatchPairMinkowskiDataset
__all__ = [
'ThreeDMatchPairDataset',
# 'ThreeDMatchPairMinkowskiDataset',
]
| 292 | 31.555556 | 112 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/datasets/registration/threedmatch/dataset.py | import os.path as osp
import pickle
import random
from typing import Dict
import numpy as np
import torch
import torch.utils.data
from geotransformer.utils.pointcloud import (
random_sample_rotation,
random_sample_rotation_v2,
get_transform_from_rotation_translation,
)
from geotransformer.utils.registrati... | 5,212 | 36.503597 | 109 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/datasets/registration/threedmatch/utils.py | import os.path as osp
import numpy as np
from nibabel import quaternions as nq
from geotransformer.utils.common import ensure_dir
from geotransformer.utils.summary_board import SummaryBoard
from geotransformer.utils.pointcloud import (
apply_transform,
get_rotation_translation_from_transform,
get_nearest_... | 8,248 | 35.021834 | 116 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/engine/__init__.py | from geotransformer.engine.epoch_based_trainer import EpochBasedTrainer
from geotransformer.engine.iter_based_trainer import IterBasedTrainer
from geotransformer.engine.single_tester import SingleTester
from geotransformer.engine.logger import Logger
| 251 | 49.4 | 71 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/engine/base_tester.py | import sys
import argparse
import os.path as osp
import time
import json
import abc
import torch
import ipdb
from geotransformer.utils.torch import initialize
from geotransformer.engine.logger import Logger
def inject_default_parser(parser=None):
if parser is None:
parser = argparse.ArgumentParser()
... | 2,952 | 32.556818 | 112 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/engine/base_trainer.py | import sys
import argparse
import os.path as osp
import time
import json
import abc
from collections import OrderedDict
import torch
import torch.nn as nn
import torch.distributed as dist
from torch.utils.tensorboard import SummaryWriter
import ipdb
from geotransformer.utils.summary_board import SummaryBoard
from geo... | 9,586 | 36.449219 | 113 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/engine/epoch_based_trainer.py | import os
import os.path as osp
from typing import Tuple, Dict
import ipdb
import torch
import tqdm
from geotransformer.engine.base_trainer import BaseTrainer
from geotransformer.utils.torch import to_cuda
from geotransformer.utils.summary_board import SummaryBoard
from geotransformer.utils.timer import Timer
from ge... | 7,356 | 38.767568 | 200 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/engine/iter_based_trainer.py | import os
import os.path as osp
from typing import Tuple, Dict
import ipdb
import torch
import tqdm
from IPython import embed
from geotransformer.engine.base_trainer import BaseTrainer
from geotransformer.utils.torch import to_cuda
from geotransformer.utils.summary_board import SummaryBoard
from geotransformer.utils.... | 7,415 | 35.895522 | 96 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/engine/logger.py | import logging
import coloredlogs
def create_logger(log_file=None):
logger = logging.getLogger()
logger.handlers.clear()
logger.setLevel(level=logging.DEBUG)
logger.propagate = False
format_str = '[%(asctime)s] [%(levelname).4s] %(message)s'
stream_handler = logging.StreamHandler()
colo... | 1,492 | 26.648148 | 78 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/engine/single_tester.py | from typing import Dict
import torch
import ipdb
from tqdm import tqdm
from geotransformer.engine.base_tester import BaseTester
from geotransformer.utils.summary_board import SummaryBoard
from geotransformer.utils.timer import Timer
from geotransformer.utils.common import get_log_string
from geotransformer.utils.torc... | 3,177 | 35.113636 | 94 | py |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/extensions/pybind.cpp | #include <torch/extension.h>
#include "cpu/radius_neighbors/radius_neighbors.h"
#include "cpu/grid_subsampling/grid_subsampling.h"
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
// CPU extensions
m.def(
"radius_neighbors",
&radius_neighbors,
"Radius neighbors (CPU)"
);
m.def(
"grid_subsampling",
... | 378 | 18.947368 | 50 | cpp |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/extensions/common/torch_helper.h | #pragma once
#include <ATen/cuda/CUDAContext.h>
#include <torch/extension.h>
#define CHECK_CUDA(x) \
TORCH_CHECK(x.device().is_cuda(), #x " must be a CUDA tensor")
#define CHECK_CPU(x) \
TORCH_CHECK(!... | 1,698 | 46.194444 | 79 | h |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/extensions/cpu/grid_subsampling/grid_subsampling.cpp | #include <cstring>
#include "grid_subsampling.h"
#include "grid_subsampling_cpu.h"
std::vector<at::Tensor> grid_subsampling(
at::Tensor points,
at::Tensor lengths,
float voxel_size
) {
CHECK_CPU(points);
CHECK_CPU(lengths);
CHECK_IS_FLOAT(points);
CHECK_IS_LONG(lengths);
CHECK_CONTIGUOUS(points);
CHE... | 1,542 | 23.492063 | 72 | cpp |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/extensions/cpu/grid_subsampling/grid_subsampling.h | #pragma once
#include <vector>
#include "../../common/torch_helper.h"
std::vector<at::Tensor> grid_subsampling(
at::Tensor points,
at::Tensor lengths,
float voxel_size
);
| 179 | 15.363636 | 41 | h |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/extensions/cpu/grid_subsampling/grid_subsampling_cpu.cpp | #include "grid_subsampling_cpu.h"
void single_grid_subsampling_cpu(
std::vector<PointXYZ>& points,
std::vector<PointXYZ>& s_points,
float voxel_size
) {
// float sub_scale = 1. / voxel_size;
PointXYZ minCorner = min_point(points);
PointXYZ maxCorner = max_point(points);
PointXYZ originCorner = floor(minCo... | 2,410 | 30.723684 | 79 | cpp |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/extensions/cpu/grid_subsampling/grid_subsampling_cpu.h | #pragma once
#include <vector>
#include <unordered_map>
#include "../../extra/cloud/cloud.h"
class SampledData {
public:
int count;
PointXYZ point;
SampledData() {
count = 0;
point = PointXYZ();
}
void update(const PointXYZ& p) {
count += 1;
point += p;
}
};
void single_grid_subsampling... | 603 | 15.324324 | 36 | h |
LiDAR2LiDAR | LiDAR2LiDAR-master/geotransformer/geotransformer/extensions/cpu/radius_neighbors/radius_neighbors.cpp | #include <cstring>
#include "radius_neighbors.h"
#include "radius_neighbors_cpu.h"
at::Tensor radius_neighbors(
at::Tensor q_points,
at::Tensor s_points,
at::Tensor q_lengths,
at::Tensor s_lengths,
float radius
) {
CHECK_CPU(q_points);
CHECK_CPU(s_points);
CHECK_CPU(q_lengths);
CHECK_CPU(s_lengths);
... | 1,958 | 27.391304 | 76 | cpp |