Image Classification
Transformers
PyTorch
efficientnet
vision

Run this model with HF Jobs

Run google/efficientnet-b7 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/google/efficientnet-b7. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/google/efficientnet-b7 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Converting logits to probability

#3
by ToonWeyens - opened

How do I get something like a probability?

Running

            predicted_label = logits.argmax(-1).item()
            predicted_label_name = self.model.config.id2label[predicted_label]
            predicted_probability = probabilities[0, predicted_label].item()

I typically get something in the range of 0.001 - 0.002, which is very far from something like 0.5-0.9 that i am expecting for this pre-trained model.

Sign up or log in to comment