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

How to run the code? #2

Open
Garfield33 opened this issue May 25, 2024 · 0 comments
Open

How to run the code? #2

Garfield33 opened this issue May 25, 2024 · 0 comments

Comments

@Garfield33
Copy link

Kind creators. I encountered many configuration issues while running the project.

  • In scripts/multi30k-train.sh, the parameter arch is set to gcn, but it raised an error:
    train.py: error: argument --arch/-a: invalid choice: 'gcn' (choose from 'SGHallucUMMT', 'SGHallucUMMT_small', 'SGHallucUMMT_tiny')

  • --utils, --vis-data, and --vis-data-args might not be correct parameters, because in models/modules:
    if args.vis_base_encoder == 'RCNN': self.base_model = vision.__dict__[args.vis_encoder_arch]( model_path=args.vis_encoder_model_path, config_path=args.vis_encoder_config_path, codebook=args.vis_encoder_use_codebook, )

    This results in: AttributeError: 'Namespace' object has no attribute 'vis_base_encoder'

  • Moreover, I can't find package vision, leading to NameError: name 'vision' is not defined

Can you provide the correct code?

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

1 participant