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
evo
evo-master/fastentrypoints.py
# Copyright (c) 2016, Aaron Christianson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of condition...
3,950
34.594595
79
py
evo
evo-master/setup.py
from setuptools import setup, Command from setuptools.command.install import install import os import sys import shutil import subprocess as sp # monkey patch because setuptools entry_points are slow as fuck # https://github.com/ninjaaron/fast-entry_points import fastentrypoints # pylint: disable=unused-import HERE...
3,576
28.081301
75
py
evo
evo-master/.ci/debian_install_pip3.sh
#!/bin/bash set -e apt update apt install -y python3-pip
59
7.571429
26
sh
evo
evo-master/.ci/ros_entrypoint.sh
#!/bin/bash set -e source "/opt/ros/$ROS_DISTRO/setup.bash" exec "$@"
72
9.428571
40
sh
evo
evo-master/.ci/ros_run_tests.sh
#!/bin/bash set -e workdir=$1 source /opt/ros/$ROS_DISTRO/setup.sh cd $workdir pytest -sv
93
8.4
36
sh
evo
evo-master/.ci/run_yapf.sh
#!/bin/bash set -e if [ ! -f setup.py ]; then echo "Error: please execute it in the base directory of the repository." exit 1 fi # Exclude 3rd party files. yapf --recursive --in-place -vv . \ --exclude "fastentrypoints.py" \ --exclude "evo/core/transformations.py" \ --exclude "test/tum_benchmark_tools/*" ...
322
19.1875
74
sh
evo
evo-master/.github/stale.yaml
# Number of days of inactivity before an issue becomes stale daysUntilStale: 30 # Number of days of inactivity before a stale issue is closed daysUntilClose: 7 # Only issues or pull requests with all of these labels are check if stale. onlyLabels: - more info needed - wontfix - invalid - duplicate - installat...
893
29.827586
77
yaml
evo
evo-master/.github/ISSUE_TEMPLATE/error-report.md
--- name: Error report about: Fill this out and upload your data (!!) --- **Description:** **Command:** ``` # replace this line with the command(s) you used ``` **Console output:** ``` # remove this line and paste your console output HERE - no screenshots please ``` **Additional files:** Please attach all the f...
724
19.138889
77
md
evo
evo-master/.github/ISSUE_TEMPLATE/feature_request.md
--- name: Feature request about: Suggest an idea for this project --- **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want t...
560
30.166667
92
md
evo
evo-master/.github/ISSUE_TEMPLATE/question-about-a-concept.md
--- name: Question about a concept about: Ask a question about theory, API, etc. ---
88
10.125
45
md
evo
evo-master/contrib/README.md
# contrib Stuff that is not part of the package distribution, but can be useful in special cases.
98
32
87
md
evo
evo-master/contrib/kitti_poses_and_timestamps_to_trajectory.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from evo.core.trajectory import PoseTrajectory3D from evo.tools import file_interface import numpy as np DESC = "Combine KITTI poses and timestamps files to a TUM trajectory file" def kitti_poses_and_timestamps_to_trajectory(poses_file, timestamp_file): pose_path = ...
1,586
43.083333
121
py
evo
evo-master/contrib/multiply_timestamps.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from evo.tools import file_interface DESC = """multiply the timestamps of a TUM trajectory file by a factor""" def main(traj_file, factor): traj = file_interface.read_tum_trajectory_file(traj_file) traj.timestamps = traj.timestamps * factor file_interface.wr...
666
28
73
py
evo
evo-master/contrib/print_duplicate_timestamps.sh
#!/bin/bash set -e usage=" Print lines with duplicate timestamps in TUM or EuRoC trajectory files.\n\n Usage: ./print_duplicates.sh TRAJECTORY " if [ "$#" -ne 1 ]; then echo -e $usage exit 1 fi cut -d" " -f 1 $1 | uniq -D
235
12.882353
75
sh
evo
evo-master/contrib/record_tf_as_posestamped_bag.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License...
4,348
34.357724
79
py
evo
evo-master/contrib/rename_est_name.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from evo.tools import file_interface DESC = """rename the 'est_name' field in a result file""" def main(res_file, new_name): result = file_interface.load_res_file(res_file) result.info["est_name"] = new_name file_interface.save_res_file(res_file, result) i...
611
25.608696
59
py
evo
evo-master/doc/alignment_demo.py
#!/usr/bin/env python """ test/demo for trajectory alignment functions author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either ver...
2,735
31.188235
79
py
evo
evo-master/doc/install_in_virtualenv.md
# Installation in a virtual environment Virtual environments allow you to install Python packages in an isolated environment. This is usually a good idea because it reduces the risk that you mess up your system's Python packages by installing globally with `pip`. Additionally, you can have multiple environments in par...
2,631
33.631579
305
md
evo
evo-master/doc/jupyter_notebook.md
To install Jupyter, call: ``` pip install jupyter jupyter nbextension enable --py --sys-prefix widgetsnbextension ``` ### Local Jupyter notebook access Go to the `evo` source folder in a terminal and run: `jupyter notebook` (starts server and opens browser window with notebook). ### Remote Jupyter notebook access N...
1,087
37.857143
127
md
evo
evo-master/doc/performance.md
# Performance Although Python's adavantages are definitely more in the area of flexibility than in in raw performance, evo still tries to work as efficient as possible to keep annoying delays small. This is achieved with efficient algorithms, heavy use of libs like numpy or pandas for handling large data, lazy evaluat...
2,220
40.12963
447
md
evo
evo-master/doc/examples/custom_app.py
#!/usr/bin/env python print("loading required evo modules") from evo.core import trajectory, sync, metrics from evo.tools import file_interface print("loading trajectories") traj_ref = file_interface.read_tum_trajectory_file( "../../test/data/fr2_desk_groundtruth.txt") traj_est = file_interface.read_tum_trajector...
2,336
34.953846
77
py
evo
evo-master/evo/__init__.py
import logging import os # https://docs.python.org/3/howto/logging.html#library-config from logging import NullHandler logging.getLogger(__name__).addHandler(NullHandler()) PACKAGE_BASE_PATH = os.path.dirname(os.path.abspath(__file__)) __version__ = open(os.path.join(PACKAGE_BASE_PATH, ...
672
31.047619
76
py
evo
evo-master/evo/common_ape_rpe.py
""" Common functions for evo_ape and evo_rpe, internal only. author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of ...
7,800
39.21134
79
py
evo
evo-master/evo/entry_points.py
# -*- coding: UTF8 -*- # PYTHON_ARGCOMPLETE_OK """ separate entry points into pieces to allow common error handling and faster argcomplete author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Pub...
4,125
30.496183
87
py
evo
evo-master/evo/ipython_config.py
from colorama import Fore, Style # Configuration file for ipython. c = get_config() # type: ignore #------------------------------------------------------------------------------ # InteractiveShellApp(Configurable) configuration #------------------------------------------------------------------------------ ## A M...
23,177
37.184514
353
py
evo
evo-master/evo/main_ape.py
#!/usr/bin/env python # -*- coding: UTF8 -*- # PYTHON_ARGCOMPLETE_OK """ Main executable for calculating the absolute pose error (APE) metric. author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General...
12,617
39.703226
79
py
evo
evo-master/evo/main_config.py
#!/usr/bin/env python # -*- coding: UTF8 -*- # PYTHON_ARGCOMPLETE_OK """ simple JSON configuration generator script for executables author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
12,425
34.706897
79
py
evo
evo-master/evo/main_evo.py
#!/usr/bin/env python # -*- coding: UTF8 -*- # PYTHON_ARGCOMPLETE_OK """ main package executable author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Softw...
6,718
38.994048
79
py
evo
evo-master/evo/main_fig.py
#!/usr/bin/env python # -*- coding: UTF8 -*- # PYTHON_ARGCOMPLETE_OK """ plot editor author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundati...
3,672
35.73
79
py
evo
evo-master/evo/main_ipython.py
#!/usr/bin/env python # -*- coding: UTF8 -*- # PYTHON_ARGCOMPLETE_OK """ launch a custom IPython shell for evo author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
2,581
31.683544
79
py
evo
evo-master/evo/main_res.py
#!/usr/bin/env python # -*- coding: UTF8 -*- # PYTHON_ARGCOMPLETE_OK """ main executable for viewing result files from the trajectory metric apps author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU Gene...
12,543
40.953177
100
py
evo
evo-master/evo/main_rpe.py
#!/usr/bin/env python # -*- coding: UTF8 -*- # PYTHON_ARGCOMPLETE_OK """ Main executable for calculating the relative pose error (RPE) metric. author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General...
14,788
41.254286
79
py
evo
evo-master/evo/main_traj.py
#!/usr/bin/env python # -*- coding: UTF8 -*- # PYTHON_ARGCOMPLETE_OK """ main executable for trajectory analysis author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published b...
25,808
43.042662
87
py
evo
evo-master/evo/core/__init__.py
0
0
0
py
evo
evo-master/evo/core/filters.py
""" filter algorithms author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any la...
6,409
38.813665
79
py
evo
evo-master/evo/core/geometry.py
""" Provides generic geometry algorithms. author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at...
3,396
31.663462
79
py
evo
evo-master/evo/core/lie_algebra.py
# -*- coding: UTF8 -*- """ Provides functions for Lie group calculations. author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either ...
6,741
26.975104
78
py
evo
evo-master/evo/core/metrics.py
# -*- coding: UTF8 -*- """ Provides metrics for the evaluation of SLAM algorithms. author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation...
17,664
37.739035
79
py
evo
evo-master/evo/core/result.py
# -*- coding: UTF8 -*- """ container class for results author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the Li...
4,320
32.757813
79
py
evo
evo-master/evo/core/sync.py
# -*- coding: UTF8 -*- """ Provides algorithms for time synchronization. author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either v...
4,637
38.641026
79
py
evo
evo-master/evo/core/trajectory.py
# -*- coding: UTF8 -*- """ some functions for trajectories author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of th...
19,102
37.359438
85
py
evo
evo-master/evo/core/transformations.py
# -*- coding: utf-8 -*- # transformations.py # Copyright (c) 2006-2015, Christoph Gohlke # Copyright (c) 2006-2015, The Regents of the University of California # Produced at the Laboratory for Fluorescence Dynamics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modifica...
66,201
33.390649
85
py
evo
evo-master/evo/tools/__init__.py
0
0
0
py
evo
evo-master/evo/tools/file_interface.py
# -*- coding: UTF8 -*- """ Low- and high-level read/write functions for different file formats. author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Softwa...
19,748
40.929936
96
py
evo
evo-master/evo/tools/log.py
# -*- coding: UTF8 -*- """ utilities for the configuration of the package's loggers author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundatio...
3,916
32.767241
100
py
evo
evo-master/evo/tools/pandas_bridge.py
# -*- coding: UTF8 -*- """ translate between evo and Pandas types author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version ...
4,826
35.568182
79
py
evo
evo-master/evo/tools/plot.py
# -*- coding: UTF8 -*- """ some plotting functionality for different tasks author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either...
32,864
39.524044
83
py
evo
evo-master/evo/tools/settings.py
""" Provides functionality for loading and resetting the package settings. author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either...
5,045
33.094595
79
py
evo
evo-master/evo/tools/settings_template.py
""" default package settings definition author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at y...
7,636
31.360169
90
py
evo
evo-master/evo/tools/tf_cache.py
# -*- coding: UTF8 -*- """ TF topic handling author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
7,737
40.159574
81
py
evo
evo-master/evo/tools/tf_id.py
""" TF topic ID string handling author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opti...
1,342
26.979167
75
py
evo
evo-master/evo/tools/user.py
""" user interaction functions author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your optio...
1,301
27.933333
75
py
evo
evo-master/test/ape_rpe_smoke_test.py
#!/usr/bin/env python import os import shutil import subprocess as sp tmp_dir = "tmp" cfg_dir = "cfg/ape_rpe" here = os.path.dirname(os.path.abspath(__file__)) # always run in script location os.chdir(here) metrics = ["evo_ape", "evo_rpe"] data = [ "euroc data/V102_groundtruth.csv data/V102.txt", "kitti da...
1,022
25.230769
66
py
evo
evo-master/test/helpers.py
""" Common helper functions and classes for tests. Author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the Licens...
1,357
30.581395
73
py
evo
evo-master/test/res_smoke_test.py
#!/usr/bin/env python import os import shutil import subprocess as sp tmp_dir = "tmp" cfg_dir = "cfg/res" here = os.path.dirname(os.path.abspath(__file__)) # always run in script location os.chdir(here) data = [ "data/res_files/orb_rpe-for-each.zip data/res_files/sptam_rpe-for-each.zip", "data/res_files/orb...
917
25.228571
80
py
evo
evo-master/test/run_all_demos.sh
#!/usr/bin/env bash set -e # exit on error n="" if [[ $* == *--no_plots* ]]; then n="--no_plots" fi # run all demo scripts to get cheap app tests yes | demos/traj_demo.sh "$n" yes | demos/ape_demo.sh "$n" yes | demos/rpe_demo.sh "$n" yes | demos/res_demo.sh "$n" yes | demos/latex_demo.sh "$n" echo "enter 'y' t...
422
18.227273
48
sh
evo
evo-master/test/test_file_interface.py
#!/usr/bin/env python """ Unit test for file_interface module. Author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 o...
8,093
37.727273
78
py
evo
evo-master/test/test_filters.py
#!/usr/bin/env python """ unit test for filters module author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the Li...
6,476
36.877193
78
py
evo
evo-master/test/test_lie_algebra.py
#!/usr/bin/env python """ unit test for lie_algebra module - mainly test mathematical correctness author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
5,877
33.374269
78
py
evo
evo-master/test/test_result.py
#!/usr/bin/env python """ unit test for lie_algebra module - mainly test mathematical correctness author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
2,629
35.027397
79
py
evo
evo-master/test/test_sync.py
#!/usr/bin/env python """ Unit test for evo.core.sync module author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of ...
3,415
38.72093
79
py
evo
evo-master/test/test_trajectory.py
#!/usr/bin/env python """ unit test for trajectory module author: Michael Grupp This file is part of evo (github.com/MichaelGrupp/evo). evo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the...
9,348
35.952569
80
py
evo
evo-master/test/traj_smoke_test.py
#!/usr/bin/env python import os import glob import shutil import subprocess as sp tmp_dir = "tmp" common_cfg_dir = "cfg/traj/common" here = os.path.dirname(os.path.abspath(__file__)) # always run in script location os.chdir(here) data = { "evo_traj euroc data/V102_groundtruth.csv --ref data/V102_groundtruth.csv...
1,473
32.5
101
py
evo
evo-master/test/demos/ape_demo.sh
#!/usr/bin/env bash set -e # exit on error # printf "\033c" resets the output function log { printf "\033c"; echo -e "\033[32m[$BASH_SOURCE] $1\033[0m"; } function echo_and_run { echo -e "\$ $@" ; read input; "$@" ; read input; } # always run in script directory parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; ...
1,350
35.513514
109
sh
evo
evo-master/test/demos/clean.sh
#!/usr/bin/env bash # always run in script directory parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) cd "$parent_path" rm -I *.bag *.kitti *.tum *.csv *.pdf *.zip *.pgf *.log *.aux *.json
204
24.625
68
sh
evo
evo-master/test/demos/config_demo.sh
#!/usr/bin/env bash set -e # exit on error # printf "\033c" resets the output function log { printf "\033c"; echo -e "\033[32m[$BASH_SOURCE] $1\033[0m"; } function echo_and_run { echo -e "\$ $@" ; read input; "$@" ; read input; } # always run in script directory parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; ...
989
29
85
sh
evo
evo-master/test/demos/latex_demo.sh
#!/usr/bin/env bash # set -e # exit on error # printf "\033c" resets the output function log { printf "\033c"; echo -e "\033[32m[$BASH_SOURCE] $1\033[0m"; } function echo_and_run { echo -e "\$ $@" ; read input; "$@" ; read input; } # always run in script directory parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ...
751
27.923077
126
sh
evo
evo-master/test/demos/res_demo.sh
#!/usr/bin/env bash # printf "\033c" resets the output function log { printf "\033c"; echo -e "\033[32m[$BASH_SOURCE] $1\033[0m"; } function echo_and_run { echo -e "\$ $@" ; read input; "$@" ; read input; } # always run in script directory parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) cd "$parent_path...
1,073
23.409091
76
sh
evo
evo-master/test/demos/rpe_demo.sh
#!/usr/bin/env bash set -e # exit on error # printf "\033c" resets the output function log { printf "\033c"; echo -e "\033[32m[$BASH_SOURCE] $1\033[0m"; } function echo_and_run { echo -e "\$ $@" ; read input; "$@" ; read input; } # always run in script directory parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; ...
1,462
38.540541
117
sh
evo
evo-master/test/demos/traj_demo.sh
#!/usr/bin/env bash set -e # exit on error # printf "\033c" resets the output function log { printf "\033c"; echo -e "\033[32m[$BASH_SOURCE] $1\033[0m"; } function echo_and_run { echo -e "\$ $@" ; read input; "$@" ; read input; } # always run in script directory parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; ...
1,462
31.511111
106
sh
evo
evo-master/test/tum_benchmark_tools/README.md
These files are here just for comparing and testing. They have been ported to support also Python 3. Apart from that, the functionality is the same as in the original files. Source: https://vision.in.tum.de/data/datasets/rgbd-dataset/tools
242
33.714286
72
md
evo
evo-master/test/tum_benchmark_tools/associate.py
#!/usr/bin/env python # Software License Agreement (BSD License) # # Copyright (c) 2013, Juergen Sturm, TUM # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code ...
5,346
40.449612
256
py
evo
evo-master/test/tum_benchmark_tools/evaluate_ate.py
#!/usr/bin/env python # Software License Agreement (BSD License) # # Copyright (c) 2013, Juergen Sturm, TUM # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code ...
8,465
42.193878
189
py
evo
evo-master/test/tum_benchmark_tools/evaluate_rpe.py
#!/usr/bin/env python # Software License Agreement (BSD License) # # Copyright (c) 2013, Juergen Sturm, TUM # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code ...
15,436
38.992228
192
py
null
qimera-main/LICENSE.md
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Pream...
35,149
51.074074
78
md
null
qimera-main/README.md
# Qimera: Data-free Quantization with Synthetic Boundary Supporting Samples [NeurIPS 2021] This repository is the official implementation of paper [Qimera: Data-free Quantization with Synthetic Boundary Supporting Samples]. [[Paper](https://arxiv.org/abs/2111.02625)] [[Slide](https://acsys.yonsei.ac.kr/papers/qimera_...
2,769
30.477273
133
md
null
qimera-main/conditional_batchnorm.py
# -*- coding: utf-8 -*- import torch.nn as nn import torch.nn.functional as F from torch.nn import init class ConditionalBatchNorm2d(nn.BatchNorm2d): """Conditional Batch Normalization""" def __init__(self, num_features, eps=1e-05, momentum=0.1, affine=False, track_running_stats=True): ...
4,783
33.417266
90
py
null
qimera-main/dataloader.py
""" data loder for loading data """ import os import math import torch import torch.utils.data as data import numpy as np from PIL import Image import torchvision import torchvision.datasets as dsets import torchvision.transforms as transforms import struct __all__ = ["DataLoader", "PartDataLoader"] class ImageLoade...
4,226
26.627451
72
py
null
qimera-main/eval_cifar100_4bit.sh
#!/bin/bash python main.py --conf_path ./cifar100_resnet20.hocon --multi_label_prob 0.4 --multi_label_num 10 --id 01 --eval
124
40.666667
111
sh
null
qimera-main/eval_cifar10_4bit.sh
#!/bin/bash python main.py --conf_path ./cifar10_resnet20.hocon --multi_label_prob 0.4 --multi_label_num 2 --id 01 --randemb --eval
132
43.333333
119
sh
null
qimera-main/eval_imgnet_mobilenet_v2_4bit.sh
#!/bin/bash python main.py --conf_path ./imagenet_mobilenet_v2.hocon --multi_label_prob 0.4 --multi_label_num 500 --id 01 --randemb --eval
139
45.666667
126
sh
null
qimera-main/eval_imgnet_resnet18_4bit.sh
#!/bin/bash python main.py --conf_path ./imagenet_resnet18.hocon --multi_label_prob 0.4 --multi_label_num 100 --id 01 --eval
125
41
112
sh
null
qimera-main/eval_imgnet_resnet50_4bit.sh
#!/bin/bash python main.py --conf_path ./imagenet_resnet50.hocon --multi_label_prob 0.7 --multi_label_num 500 --id 01 --eval
125
41
112
sh
null
qimera-main/experiments.py
import os import argparse import numpy as np import pandas as pd from scipy.linalg import eigh import torch import torch.nn as nn import torchvision from torchvision import datasets, transforms import seaborn as sns from matplotlib import pyplot as plt from sklearn.preprocessing import StandardScaler from sklearn.d...
23,289
46.921811
282
py
null
qimera-main/main.py
import argparse import datetime import logging import os import time import traceback import sys import copy import torch import torch.backends.cudnn as cudnn from torch.autograd import Variable import torch.nn as nn from torch import pca_lowrank # option file should be modified according to your expriment from optio...
16,326
32.943867
182
py
null
qimera-main/options.py
import os import shutil from pyhocon import ConfigFactory from utils.opt_static import NetOption class Option(NetOption): def __init__(self, conf_path, args): super(Option, self).__init__() self.conf = ConfigFactory.parse_file(conf_path) # ------------ General options ---------------------------------------...
4,420
38.123894
292
py
null
qimera-main/run_cifar100_4bit.sh
#!/bin/bash python main.py --conf_path ./cifar100_resnet20.hocon --multi_label_prob 0.4 --multi_label_num 10 --id 01
117
38.333333
104
sh
null
qimera-main/run_cifar10_4bit.sh
#!/bin/bash python main.py --conf_path ./cifar10_resnet20.hocon --multi_label_prob 0.4 --multi_label_num 2 --id 01 --randemb
125
41
112
sh
null
qimera-main/run_imgnet_mobilenet_v2_4bit.sh
#!/bin/bash python main.py --conf_path ./imagenet_mobilenet_v2.hocon --multi_label_prob 0.4 --multi_label_num 100 --id 01 --randemb
132
43.333333
119
sh
null
qimera-main/run_imgnet_resnet18_4bit.sh
#!/bin/bash python main.py --conf_path ./imagenet_resnet18.hocon --multi_label_prob 0.4 --multi_label_num 500 --id 01 --randemb
128
42
115
sh
null
qimera-main/run_imgnet_resnet50_4bit.sh
#!/bin/bash python main.py --conf_path ./imagenet_resnet50.hocon --multi_label_prob 0.7 --multi_label_num 500 --id 01
118
38.666667
105
sh
null
qimera-main/trainer.py
""" basic trainer """ import time import torch.autograd import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F import utils as utils import numpy as np import torch import math __all__ = ["Trainer"] class Trainer(object): """ trainer for training network, use SGD """ def __i...
13,496
27.901499
123
py
null
qimera-main/other_train_scripts/eval_cifar100_5bit.sh
#!/bin/bash python main.py --conf_path ./cifar100_resnet20.hocon --multi_label_prob 0.4 --multi_label_num 50 --id 01 --qw 5 --qa 5 --eval
139
45.666667
126
sh
null
qimera-main/other_train_scripts/eval_cifar10_5bit.sh
#!/bin/bash python main.py --conf_path ./cifar10_resnet20.hocon --multi_label_prob 0.4 --multi_label_num 2 --id 01 --randemb --qw 5 --qa 5 --eval
146
48
133
sh
null
qimera-main/other_train_scripts/eval_imgnet_mobilenet_v2_5bit.sh
#!/bin/bash python main.py --conf_path ./imagenet_mobilenet_v2.hocon --multi_label_prob 0.4 --multi_label_num 100 --id 01 --randemb --qw 5 --qa 5 --eval
154
50.666667
141
sh
null
qimera-main/other_train_scripts/eval_imgnet_resnet18_5bit.sh
#!/bin/bash python main.py --conf_path ./imagenet_resnet18.hocon --multi_label_prob 0.4 --multi_label_num 100 --id 01 --randemb --qw 5 --qa 5 --eval
150
49.333333
137
sh
null
qimera-main/other_train_scripts/eval_imgnet_resnet50_5bit.sh
#!/bin/bash python main.py --conf_path ./imagenet_resnet50.hocon --multi_label_prob 0.7 --multi_label_num 100 --id 01 --qw 5 --qa 5 --eval
140
46
127
sh
null
qimera-main/other_train_scripts/run_cifar100_5bit.sh
#!/bin/bash python main.py --conf_path ./cifar100_resnet20.hocon --multi_label_prob 0.4 --multi_label_num 50 --id 01 --qw 5 --qa 5
132
43.333333
119
sh
null
qimera-main/other_train_scripts/run_cifar10_5bit.sh
#!/bin/bash python main.py --conf_path ./cifar10_resnet20.hocon --multi_label_prob 0.4 --multi_label_num 2 --id 01 --randemb --qw 5 --qa 5
139
45.666667
126
sh
null
qimera-main/other_train_scripts/run_imgnet_mobilenet_v2_5bit.sh
#!/bin/bash python main.py --conf_path ./imagenet_mobilenet_v2.hocon --multi_label_prob 0.4 --multi_label_num 100 --id 01 --randemb --qw 5 --qa 5
147
48.333333
134
sh