Skip to content

Commit

Permalink
fix bugs in config files
Browse files Browse the repository at this point in the history
  • Loading branch information
yysijie committed Oct 7, 2019
1 parent c6ebbd7 commit 3412afd
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
8 changes: 4 additions & 4 deletions configs/recognition/st_gcn/dataset_example/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ processor_cfg:
data_dir: ./data/dataset_example
num_track: 2
pipeline:
- name: "skeleton_process.normalize_by_resolution"
- name: "skeleton_process.mask_by_visibility"
- name: "skeleton_process.transpose"
- name: "datasets.skeleton.normalize_by_resolution"
- name: "datasets.skeleton.mask_by_visibility"
- name: "datasets.skeleton.transpose"
order: [0, 2, 1, 3]
- name: "skeleton_process.to_tuple"
- name: "datasets.skeleton.to_tuple"

# dataloader setting
batch_size: 3
Expand Down
17 changes: 9 additions & 8 deletions configs/recognition/st_gcn/dataset_example/train.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,24 @@ processor_cfg:
num_track: 2
repeat: 20
pipeline:
- name: "skeleton_process.normalize_by_resolution"
- name: "skeleton_process.mask_by_visibility"
- name: "skeleton_process.transpose"
# - name: "skeleton_process.normalize_by_resolution"
- name: "datasets.skeleton.normalize_by_resolution"
- name: "datasets.skeleton.mask_by_visibility"
- name: "datasets.skeleton.transpose"
order: [0, 2, 1, 3]
- name: "skeleton_process.to_tuple"
- name: "datasets.skeleton.to_tuple"

- name: "datasets.DataPipeline"
data_source:
name: "datasets.SkeletonLoader"
data_dir: ./data/dataset_example
num_track: 2
pipeline:
- name: "skeleton_process.normalize_by_resolution"
- name: "skeleton_process.mask_by_visibility"
- name: "skeleton_process.transpose"
- name: "datasets.skeleton.normalize_by_resolution"
- name: "datasets.skeleton.mask_by_visibility"
- name: "datasets.skeleton.transpose"
order: [0, 2, 1, 3]
- name: "skeleton_process.to_tuple"
- name: "datasets.skeleton.to_tuple"

# dataloader setting
batch_size: 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ processor_cfg:
data_dir: ./data/Kinetics/skeleton-from-openpose/val
num_track: 2
pipeline:
- name: "skeleton_process.normalize_by_resolution"
- name: "skeleton_process.mask_by_visibility"
- name: "skeleton_process.transpose"
- name: "datasets.skeleton.normalize_by_resolution"
- name: "datasets.skeleton.mask_by_visibility"
- name: "datasets.skeleton.transpose"
order: [0, 2, 1, 3]
- name: "skeleton_process.to_tuple"
- name: "datasets.skeleton.to_tuple"

# dataloader setting
batch_size: 256
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,26 @@ processor_cfg:
data_dir: ./data/Kinetics/skeleton-from-openpose/train
num_track: 2
pipeline:
- name: "skeleton_process.normalize_by_resolution"
- name: "skeleton_process.mask_by_visibility"
- name: "skeleton_process.temporal_repeat"
- name: "datasets.skeleton.normalize_by_resolution"
- name: "datasets.skeleton.mask_by_visibility"
- name: "datasets.skeleton.temporal_repeat"
size: 150
- name: "skeleton_process.simulate_camera_moving"
- name: "skeleton_process.transpose"
- name: "datasets.skeleton.simulate_camera_moving"
- name: "datasets.skeleton.transpose"
order: [0, 2, 1, 3]
- name: "skeleton_process.to_tuple"
- name: "datasets.skeleton.to_tuple"

- name: "datasets.DataPipeline"
data_source:
name: "datasets.SkeletonLoader"
data_dir: ./data/Kinetics/skeleton-from-openpose/val
num_track: 2
pipeline:
- name: "skeleton_process.normalize_by_resolution"
- name: "skeleton_process.mask_by_visibility"
- name: "skeleton_process.transpose"
- name: "datasets.skeleton.normalize_by_resolution"
- name: "datasets.skeleton.mask_by_visibility"
- name: "datasets.skeleton.transpose"
order: [0, 2, 1, 3]
- name: "skeleton_process.to_tuple"
- name: "datasets.skeleton.to_tuple"


# dataloader setting
Expand Down
3 changes: 1 addition & 2 deletions mmskeleton/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from .skeleton_feeder import SkeletonFeeder
from .coco import COCODataset
from .data_pipeline import DataPipeline
from .skeleton_dataset import SkeletonLoader
from .skeleton import SkeletonLoader
1 change: 0 additions & 1 deletion mmskeleton/datasets/skeleton/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from .loader import SkeletonLoader
from .cache_loader import SkeletonCacheLoader
from .skeleton_process import *
3 changes: 2 additions & 1 deletion mmskeleton/utils/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def import_obj(name):
except ModuleNotFoundError:
if name[0:11] != 'mmskeleton.':
return import_obj('mmskeleton.' + name)
raise ImportError('Object {} cannot be found.'.format(class_str))
raise ModuleNotFoundError('Object {} cannot be found in {}.'.format(
class_str, mod_str))


def call_obj(name, **kwargs):
Expand Down

0 comments on commit 3412afd

Please sign in to comment.