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

best_cars_encoders #216

Open
mustfkeskin opened this issue Feb 19, 2025 · 0 comments
Open

best_cars_encoders #216

mustfkeskin opened this issue Feb 19, 2025 · 0 comments

Comments

@mustfkeskin
Copy link

When training complete there is a no folder exist best_cars_encoders
https://qdrant.tech/articles/cars-recognition/
But in evulator.py os.path.join(os.path.dirname(file), "best_cars_encoders") want to load best_cars_encoders

def eval_tuned_encoder(dataset, device):
    print("Evaluating tuned encoder...")
    tuned_cars_model = SimilarityModel.load(
        os.path.join(os.path.dirname(__file__), "best_cars_encoders")
    ).to(device)
    tuned_cars_model.eval()

    result = Quaterion.evaluate(
        evaluator=Evaluator(
            metrics=RetrievalRPrecision(),
            sampler=GroupSampler(sample_size=1000, device=device, log_progress=True),
        ),
        model=tuned_cars_model,
        dataset=dataset,
    )

    print(result)
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