Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when i run the training part main.py #29

Open
ethio-artifical opened this issue Mar 12, 2023 · 1 comment
Open

Error when i run the training part main.py #29

ethio-artifical opened this issue Mar 12, 2023 · 1 comment

Comments

@ethio-artifical
Copy link

ethio-artifical commented Mar 12, 2023

I run on the cpu
python main.py --work-dir PATH_TO_SAVE_RESULTS --config F:\code\VAC_CSLR-main1\configs\baseline.yaml --device 'cpu'

and i got these error
.git does not exist in current dir
<main.Processor object at 0x0000017E7A49DD50>
[ Sun Mar 12 22:24:52 2023 ] Parameters:
{'work_dir': 'PATH_TO_SAVE_RESULTS', 'config': 'F:\code\VAC_CSLR-main1\configs\baseline.yaml', 'random_fix': True, 'device': 'cpu', 'phase': 'train', 'save_interval': 5, 'random_seed': 0, 'eval_interval': 1, 'print_log': True, 'log_interval': 50, 'evaluate_tool': 'sclite', 'feeder': 'dataset.dataloader_video.BaseFeeder', 'dataset': 'phoenix14', 'dataset_info': {'dataset_root': './dataset/phoenix2014/phoenix-2014-multisigner', 'dict_path': './preprocess/phoenix2014/gloss_dict.npy', 'evaluation_dir': './evaluation/slr_eval', 'evaluation_prefix': 'phoenix2014-groundtruth'}, 'num_worker': 10, 'feeder_args': {'mode': 'train', 'datatype': 'video', 'num_gloss': -1, 'drop_ratio': 1.0}, 'model': 'slr_network.SLRModel', 'model_args': {'num_classes': 508, 'c2d_type': 'resnet18', 'conv_type': 2, 'use_bn': 1, 'share_classifier': False, 'weight_norm': False}, 'load_weights': None, 'load_checkpoints': None, 'decode_mode': 'beam', 'ignore_weights': [], 'batch_size': 2, 'test_batch_size': 8, 'loss_weights': {'SeqCTC': 1.0}, 'optimizer_args': {'optimizer': 'Adam', 'base_lr': 0.0001, 'step': [20, 35], 'learning_ratio': 1, 'weight_decay': 0.0001, 'start_epoch': 0, 'nesterov': False}, 'num_epoch': 3}

Traceback (most recent call last):
File "F:\code\VAC_CSLR-main1\main.py", line 220, in
processor.start()
File "F:\code\VAC_CSLR-main1\main.py", line 49, in start
seq_train(self.data_loader['train'], self.model, self.optimizer,
KeyError: 'train'

i got the error when i run python main.py
can you help me please

these is

@ycmin95
Copy link
Collaborator

ycmin95 commented Mar 13, 2023

Relevant codes are here, you can check whether the training date are loaded successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants