Skip to content

Commit 463c810

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4da84fe commit 463c810

File tree

5 files changed

+2
-4
lines changed

5 files changed

+2
-4
lines changed

torch_points3d/applications/base_architectures/base_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import torch.nn as nn
22

3+
34
# This is the base class of the Backbone/API models, that provides useful functions to use within these models
45
class BaseModel(nn.Module):
5-
66
# When creating new tensors (esp sparsetensors), we need to be able to send them to the correct device
77
# as ptl won't do it automatically
88
@property

torch_points3d/core/instantiator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def scheduler(self, cfg: DictConfig, optimizer: torch.optim.Optimizer) -> torch.
5757
return self.instantiate(cfg, optimizer=optimizer)
5858

5959
def data_module(self, cfg: DictConfig) -> PointCloudDataModule:
60-
6160
return self.instantiate(cfg)
6261

6362
def logger(self, cfg: DictConfig) -> Optional[logging.Logger]:

torch_points3d/trainer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def __init__(
2020
model: TaskConfig = TaskConfig(),
2121
trainer: TrainerConfig = TrainerConfig(),
2222
):
23-
2423
# move these instantiations to `train`?
2524
self.data_module: PointCloudDataModule = instantiator.data_module(dataset)
2625
if self.data_module is None:

torch_points3d/utils/model_building_utils/model_definition_resolver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def resolve(obj, constants):
3232

3333
# recursively resolve all children of obj
3434
for k in it:
35-
3635
# if obj[k] is a primative type, evalulate it
3736
if resolve(obj[k], constants):
3837
if type(obj[k]) is str:

torch_points3d/utils/model_building_utils/resolver_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import collections
22

3+
34
# from https://stackoverflow.com/questions/6027558/flatten-nested-dictionaries-compressing-keys
45
# flattens nested dicts to a single dict, with keys concatenated
56
# e.g. flatten_dict({'a': 1, 'c': {'a': 2, 'b': {'x': 5, 'y' : 10}}, 'd': [1, 2, 3]})

0 commit comments

Comments
 (0)