Skip to content

Some sample scripts for basic tasks via top models on Hugging Face.

Notifications You must be signed in to change notification settings

TahaScripts/FaceSampleScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaceSampleScripts

This is a set of basic Python scripts for getting started with testing models on HuggingFace via the platform's Inference API.

Text2Image

From whichever directory you've setup the project, run the following:

python image.py  -q "query_here" -m "model_name here" -a "auth_token" --compare

Only the -q (query) is required to run the command. Takes in stabilityai/stable-diffusion-2-1. . Use -a flag for your own auth bearer token if you don't want to add to configs.

Output is saved to the export folder.

Compare Models

An interesting feature is the one for comparing models. Add as many model names as you wish, separated by comma (,).

For example the command python image.py -q "Mark Twain attacking Pokemon villagers" -m "stabilityai/stable-diffusion-2-1,prompthero/openjourney" --compare will provide an image from the query (Mark Twain attacking Pokemon villagers) for each model provided [ stabilityai/stable-diffusion-2-1 , prompthero/openjourney ].

Output is saved to the export folder.

About

Some sample scripts for basic tasks via top models on Hugging Face.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages