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

TypeError: TextZeroShotDetectionModule.box_predictor() takes 1 positional argument but 3 were given #1093

Open
Aki1991 opened this issue Aug 8, 2024 · 0 comments

Comments

@Aki1991
Copy link

Aki1991 commented Aug 8, 2024

Hi all,
I am trying to convert my trained jax checkpoint in to tfmodel using this notebook provided at owl_vit/notebook directory.

While trying to convert the checkpoint to model, at this stage of the notebook,

assert tf.executing_eagerly(
), 'Use eager execution to avoid FailedPreconditionError.'
convert_and_save_model(
    predict_fn,
    variables,
    input_signatures=input_signatures,
    polymorphic_shapes=polymorphic_shapes,
    model_dir=EXPORT_DIR,
    with_gradient=True,
    enable_xla=True,
    compile_model=True)

I get this error.
TypeError: TextZeroShotDetectionModule.box_predictor() takes 1 positional argument but 3 were given

This happens when I use the official checkpoint (mentioned in the config file.) and also for the local checkpoint which I got after finetuning the model.

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