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

TRAIN.FINETUNE: command not found` #2

Open
Joan-gao opened this issue Dec 19, 2022 · 7 comments
Open

TRAIN.FINETUNE: command not found` #2

Joan-gao opened this issue Dec 19, 2022 · 7 comments

Comments

@Joan-gao
Copy link

Joan-gao commented Dec 19, 2022

hi, I followed install instruction, but in eval phase I have follow error:
Traceback (most recent call last): File "run_net_emamix.py", line 44, in <module> main() File "run_net_emamix.py", line 23, in main cfg = load_config(args) File "D:\files\AndroidStudioProjects\SVFormer\timesformer\utils\parser.py", line 77, in load_config cfg.merge_from_file(args.cfg_file) File "D:\program_files\anaconda\envs\svformer\lib\site-packages\fvcore\common\config.py", line 121, in merge_from_file self.merge_from_other_cfg(loaded_cfg) File "D:\program_files\anaconda\envs\svformer\lib\site-packages\fvcore\common\config.py", line 132, in merge_from_other_cfg return super().merge_from_other_cfg(cfg_other) File "D:\program_files\anaconda\envs\svformer\lib\site-packages\yacs\config.py", line 217, in merge_from_other_cfg _merge_a_into_b(cfg_other, self, self, []) File "D:\program_files\anaconda\envs\svformer\lib\site-packages\yacs\config.py", line 478, in _merge_a_into_b _merge_a_into_b(v, b[k], root, key_list + [k]) File "D:\program_files\anaconda\envs\svformer\lib\site-packages\yacs\config.py", line 491, in _merge_a_into_b raise KeyError("Non-existent config key: {}".format(full_key)) KeyError: 'Non-existent config key: TRAIN.GAMMA' train.sh: line 10: TRAIN.FINETUNE: command not found
I wonder how to deal with this problem?

@Joan-gao Joan-gao reopened this Dec 19, 2022
@Joan-gao Joan-gao changed the title no module named 'timesformer.models.swin' TRAIN.FINETUNE: command not found` Dec 19, 2022
@XinyuSun
Copy link

XinyuSun commented Apr 4, 2023

just add a \ after the line:9 TRAIN.ENABLE False in train.sh

python setup.py build develop
python run_net_emamix.py \
  --cfg configs/Kinetics/TimeSformer_base_ssl.yaml \
  DATA.PATH_TO_DATA_DIR ./dataset/list_k400_1/ \
  OUTPUT_DIR ./output/list_k400_1/k400_1/ \
  NUM_GPUS 8 \
  TRAIN.BATCH_SIZE 8 \
  TEST.BATCH_SIZE 64 \
  TRAIN.ENABLE False \
  TRAIN.FINETUNE False \
  TRAIN.CHECKPOINT_FILE_PATH ./checkpoints/checkpoint.pyth

@FlusPrism
Copy link

just add a \ after the line:9 TRAIN.ENABLE False in train.sh

python setup.py build develop
python run_net_emamix.py \
  --cfg configs/Kinetics/TimeSformer_base_ssl.yaml \
  DATA.PATH_TO_DATA_DIR ./dataset/list_k400_1/ \
  OUTPUT_DIR ./output/list_k400_1/k400_1/ \
  NUM_GPUS 8 \
  TRAIN.BATCH_SIZE 8 \
  TEST.BATCH_SIZE 64 \
  TRAIN.ENABLE False \
  TRAIN.FINETUNE False \
  TRAIN.CHECKPOINT_FILE_PATH ./checkpoints/checkpoint.pyth

Hello, have you run through this code? Is the code provided by the author complete? I have encountered some problems. Can you leave an email to communicate? Thank you very much.

@XinyuSun
Copy link

just add a \ after the line:9 TRAIN.ENABLE False in train.sh

python setup.py build develop
python run_net_emamix.py \
  --cfg configs/Kinetics/TimeSformer_base_ssl.yaml \
  DATA.PATH_TO_DATA_DIR ./dataset/list_k400_1/ \
  OUTPUT_DIR ./output/list_k400_1/k400_1/ \
  NUM_GPUS 8 \
  TRAIN.BATCH_SIZE 8 \
  TEST.BATCH_SIZE 64 \
  TRAIN.ENABLE False \
  TRAIN.FINETUNE False \
  TRAIN.CHECKPOINT_FILE_PATH ./checkpoints/checkpoint.pyth

Hello, have you run through this code? Is the code provided by the author complete? I have encountered some problems. Can you leave an email to communicate? Thank you very much.

Feel free to contact me using wechat Anthracenesy

@t-rizvi
Copy link

t-rizvi commented May 25, 2023

just add a \ after the line:9 TRAIN.ENABLE False in train.sh

python setup.py build develop
python run_net_emamix.py \
  --cfg configs/Kinetics/TimeSformer_base_ssl.yaml \
  DATA.PATH_TO_DATA_DIR ./dataset/list_k400_1/ \
  OUTPUT_DIR ./output/list_k400_1/k400_1/ \
  NUM_GPUS 8 \
  TRAIN.BATCH_SIZE 8 \
  TEST.BATCH_SIZE 64 \
  TRAIN.ENABLE False \
  TRAIN.FINETUNE False \
  TRAIN.CHECKPOINT_FILE_PATH ./checkpoints/checkpoint.pyth

Hello, have you run through this code? Is the code provided by the author complete? I have encountered some problems. Can you leave an email to communicate? Thank you very much.

Feel free to contact me using wechat Anthracenesy

Can you help to run this repo, I have posted it as new issue

@XinyuSun
Copy link

maybe you can try this forked repo:
https://github.com/XinyuSun/SVFormer

@t-rizvi
Copy link

t-rizvi commented May 25, 2023

Sure, i will check and let you know

@t-rizvi
Copy link

t-rizvi commented May 28, 2023

maybe you can try this forked repo:
https://github.com/XinyuSun/SVFormer

I trained a pretrained network from internet that seems incorrect as train error values are approaching zero. Can you share the pre-trained model used in this repository ?

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

4 participants