Undefined name: BaseModel is defined on line 102 (#9)

* Undefined name: BaseModel is defined on line 102

% `flake8 . --count --select=E9,F63,F7,F82,Y --show-source --statistics`
```
./OpenGait/lib/modeling/base_model.py:27:1: F822 undefined name 'BasicModel' in __all__
__all__ = ['BasicModel']
^
1     F822 undefined name 'BasicModel' in __all__
1
```

* Fix typo discovered by codespell
This commit is contained in:
Christian Clauss
2021-10-22 02:48:29 +02:00
committed by GitHub
parent c945672bab
commit ea01802759
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ trainer_cfg:
frames_num_fixed: 30 # fixed frames number for training frames_num_fixed: 30 # fixed frames number for training
frames_num_max: 50 # max frames number for unfixed training frames_num_max: 50 # max frames number for unfixed training
frames_num_min: 25 # min frames number for unfixed traing frames_num_min: 25 # min frames number for unfixed traing
sample_type: fixed_unordered # fixed control input frames number, unordered for controling order of input tensor; Other options: unfixed_ordered or all_ordered sample_type: fixed_unordered # fixed control input frames number, unordered for controlling order of input tensor; Other options: unfixed_ordered or all_ordered
type: TripletSampler type: TripletSampler
# transform: # transform:
# - type: BaseSilCuttingTransform # - type: BaseSilCuttingTransform
+2 -2
View File
@@ -24,7 +24,7 @@ from utils import evaluation as eval_functions
from utils import NoOp from utils import NoOp
from utils import get_msg_mgr from utils import get_msg_mgr
__all__ = ['BasicModel'] __all__ = ['BaseModel']
class MetaModel(metaclass=ABCMeta): class MetaModel(metaclass=ABCMeta):
@@ -356,7 +356,7 @@ class BaseModel(MetaModel, nn.Module):
@ staticmethod @ staticmethod
def run_train(model): def run_train(model):
''' '''
Accept the instace object(model) here, and then run the train loop handler. Accept the instance object(model) here, and then run the train loop handler.
''' '''
for inputs in model.train_loader: for inputs in model.train_loader:
ipts = model.inputs_pretreament(inputs) ipts = model.inputs_pretreament(inputs)