Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasFrey96 committed Mar 1, 2024
1 parent b6d50de commit aeaf838
Show file tree
Hide file tree
Showing 24 changed files with 62 additions and 47 deletions.
4 changes: 2 additions & 2 deletions hitchhiking_rotations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
import os

HITCHHIKING_ROOT_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/cfgs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
from .cfg_cube_image_to_pose import get_cfg_cube_image_to_pose
from .cfg_pcd_to_pose import get_cfg_pcd_to_pose
from .cfg_pose_to_cube_image import get_cfg_pose_to_cube_image
4 changes: 2 additions & 2 deletions hitchhiking_rotations/cfgs/cfg_cube_image_to_pose.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
def get_cfg_cube_image_to_pose(device):
shared_trainer_cfg = {
"_target_": "hitchhiking_rotations.utils.Trainer",
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/cfgs/cfg_pcd_to_pose.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
def get_cfg_pcd_to_pose(device):
shared_trainer_cfg = {
"_target_": "hitchhiking_rotations.utils.Trainer",
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/cfgs/cfg_pose_to_cube_image.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
def get_cfg_pose_to_cube_image(device):
cfg = {
"_target_": "hitchhiking_rotations.utils.Trainer",
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/cfgs/cfg_pose_to_fourier.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
def get_cfg_pose_to_fourier(device, nb, nf):
shared_trainer_cfg = {
"_target_": "hitchhiking_rotations.utils.Trainer",
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
from .cube_dataset import CubeImageToPoseDataset, PoseToCubeImageDataset
from .pointcloud_dataset import PointCloudDataset
from .fourier_dataset import PoseToFourierDataset
4 changes: 2 additions & 2 deletions hitchhiking_rotations/datasets/cube_data_generator.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
import mujoco
import torch
import numpy as np
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/datasets/cube_dataset.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
from hitchhiking_rotations import HITCHHIKING_ROOT_DIR
from hitchhiking_rotations.utils import save_pickle, load_pickle
import os
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/datasets/fourier_dataset.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
from torch.utils.data import Dataset


Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/datasets/pointcloud_dataset.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
import torch
import numpy as np
import os
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
from .models import MLP, CNN, MLPNetPCD
4 changes: 2 additions & 2 deletions hitchhiking_rotations/models/models.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
import numpy as np
import torch
from torch import nn
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
from .euler_helper import euler_angles_to_matrix, matrix_to_euler_angles
from .conversions import *
from .metrics import *
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/utils/conversions.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
from .euler_helper import euler_angles_to_matrix, matrix_to_euler_angles
import roma
import torch
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/utils/euler_helper.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
import torch


Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/utils/helper.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
def passthrough(*x):
if len(x) == 1:
return x[0]
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/utils/loading.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
import os
import yaml
import pickle
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/utils/logger.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
from .metrics import *

available_metrics = {
Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/utils/metrics.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
import torch
import roma

Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/utils/notation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
from enum import Enum


Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/utils/trainer.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
import torch


Expand Down
4 changes: 2 additions & 2 deletions hitchhiking_rotations/utils/training_helper.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
#
# Copyright (c) 2024, MPI-IS, Jonas Frey, Rene Geist, Mikel Zhobro.
# All rights reserved. Licensed under the MIT license.
# See LICENSE file in the project root for details.
#
#
from enum import Enum
import numpy as np
import argparse
Expand Down
17 changes: 16 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
from setuptools import find_packages
from distutils.core import setup

INSTALL_REQUIRES = ["numpy", "pip", "scipy", "scikit-learn", "matplotlib", "seaborn", "pytictac", "roma", "black", "pyyaml", "hydra", "omegaconf", "tqdm", "hydra-core"]
INSTALL_REQUIRES = [
"numpy",
"pip",
"scipy",
"scikit-learn",
"matplotlib",
"seaborn",
"pytictac",
"roma",
"black",
"pyyaml",
"hydra",
"omegaconf",
"tqdm",
"hydra-core",
]

setup(
name="hitchhiking_rotations",
Expand Down

0 comments on commit aeaf838

Please sign in to comment.