Instructions to use yuvalkirstain/PickScore_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yuvalkirstain/PickScore_v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="yuvalkirstain/PickScore_v1") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("yuvalkirstain/PickScore_v1") model = AutoModelForZeroShotImageClassification.from_pretrained("yuvalkirstain/PickScore_v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
The output of the model is inconsistent
#2
by amirakhlaghiqqq - opened
Hey,
Thanks for your great model. I am trying to use PickScore to evaluate the performance of a prompt enhancement model. The problem is that, If I rerun the model on the same set of inputs the results are different. Do you have any ideas what could be the reason? I experiment with defining seed and enforcing the cuda to be deterministic, but the problem persist!
Best regards