Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__pycache__**
data/**
pretrained_models/**
4 changes: 1 addition & 3 deletions scripts/benchmark/eval2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@

from mmengine.config import Config, DictAction
from mmengine.runner import Runner
from mmengine.registry import RUNNERS

root_dir = Path(__file__).parent.parent.parent
sys.path.append(str(root_dir))

from wildscenes.mmseg_wildscenes.registry import RUNNERS


def parse_args():
parser = argparse.ArgumentParser(
description='MMSeg test (and eval) a model')
Expand Down
3 changes: 1 addition & 2 deletions scripts/benchmark/eval3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
from mmengine.config import Config, ConfigDict, DictAction
# from mmengine.registry import RUNNERS
from mmengine.runner import Runner
from mmengine.registry import RUNNERS

from mmdet3d.utils import replace_ceph_backend

root_dir = Path(__file__).parent.parent.parent
sys.path.append(str(root_dir))

from wildscenes.mmdet_wildscenes.registry import RUNNERS3D as RUNNERS


def parse_args():
parser = argparse.ArgumentParser(
Expand Down
3 changes: 1 addition & 2 deletions scripts/benchmark/train2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
from mmengine.config import Config, DictAction
from mmengine.logging import print_log
from mmengine.runner import Runner
from mmengine.registry import RUNNERS

root_dir = Path(__file__).parent.parent.parent
sys.path.append(str(root_dir))

from wildscenes.mmseg_wildscenes.registry import RUNNERS


def parse_args():
parser = argparse.ArgumentParser(description='Train a segmentor on wildscenes')
Expand Down
6 changes: 1 addition & 5 deletions scripts/benchmark/train3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@
from mmengine.logging import print_log
# from mmengine.registry import RUNNERS
from mmengine.runner import Runner

from mmdet3d.utils import replace_ceph_backend
from mmdet3d.registry import RUNNERS

root_dir = Path(__file__).parent.parent.parent
sys.path.append(str(root_dir))

# from wildscenes.mmseg_wildscenes.registry.registry3d import RUNNERS
from wildscenes.mmdet_wildscenes.registry import RUNNERS3D as RUNNERS


def parse_args():
parser = argparse.ArgumentParser(description='Train a 3D detector')
Expand Down
Empty file removed wildscenes/__init__.py
Empty file.
6 changes: 6 additions & 0 deletions wildscenes/configs/_base_/datasets/wildscenes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
custom_imports = dict(
imports=[
'wildscenes.mmseg_wildscenes'
],
allow_failed_imports=False)


dataset_type = "WildscenesDataset"

Expand Down
5 changes: 5 additions & 0 deletions wildscenes/configs3d/_base_/datasets/wildscenes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# For labels_map we follow the uniform format of MMDetection & MMSegmentation
# i.e. we consider the unlabeled class as the last one, which is different
# from the original implementation of some methods e.g. Cylinder3D.
custom_imports = dict(
imports=[
'wildscenes.mmdet_wildscenes'
],
allow_failed_imports=False)
dataset_type = 'WildScenesDataset3d'

# Please modify the path below and replace FULLPATHTOTHISREPO with where you installed this repo
Expand Down
8 changes: 0 additions & 8 deletions wildscenes/mmdet_wildscenes/registry/__init__.py

This file was deleted.

142 changes: 0 additions & 142 deletions wildscenes/mmdet_wildscenes/registry/registry3d.py

This file was deleted.

16 changes: 0 additions & 16 deletions wildscenes/mmseg_wildscenes/registry/__init__.py

This file was deleted.

120 changes: 0 additions & 120 deletions wildscenes/mmseg_wildscenes/registry/registry.py

This file was deleted.