helenai / johnslegers-epic-diffusion-ov

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: March 07 2023
text-to-image

Introduction of johnslegers-epic-diffusion-ov

Model Details of johnslegers-epic-diffusion-ov

OpenVINO Stable Diffusion

johnslegers/epic-diffusion

This repository contains the models from johnslegers/epic-diffusion converted to OpenVINO, for accelerated inference on CPU or Intel GPU with OpenVINO's integration into Optimum: optimum-intel . The model weights are stored with FP16 precision, which reduces the size of the model by half.

Please check out the source model repository for more information about the model and its license.

To install the requirements for this demo, do pip install "optimum-intel[openvino, diffusers]" . This installs all the necessary dependencies, including Transformers and OpenVINO. For more detailed steps, please see this installation guide .

The simplest way to generate an image with stable diffusion takes only two lines of code, as shown below. The first line downloads the model from the Hugging Face hub (if it has not been downloaded before) and loads it; the second line generates an image.

from optimum.intel.openvino import OVStableDiffusionPipeline

stable_diffusion = OVStableDiffusionPipeline.from_pretrained("helenai/johnslegers-epic-diffusion-ov")
images = stable_diffusion("a random image").images

The following example code uses static shapes for even faster inference. Using larger image sizes will require more memory and take longer to generate.

If you have an 11th generation or later Intel Core processor, you can use the integrated GPU for inference, and if you have an Intel discrete GPU, you can use that. Add the line stable_diffusion.to("GPU") before stable_diffusion.compile() in the example below. Model loading will take some time the first time, but will be faster after that, because the model will be cached. On GPU, for stable diffusion only static shapes are supported at the moment.

from optimum.intel.openvino.modeling_diffusion import OVStableDiffusionPipeline

batch_size = 1
num_images_per_prompt = 1
height = 256
width = 256

# load the model and reshape to static shapes for faster inference
model_id = "helenai/johnslegers-epic-diffusion-ov"
stable_diffusion = OVStableDiffusionPipeline.from_pretrained(model_id, compile=False)
stable_diffusion.reshape( batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images_per_prompt)
stable_diffusion.compile()

# generate image!
prompt = "a random image"
images = stable_diffusion(prompt, height=height, width=width, num_images_per_prompt=num_images_per_prompt).images
images[0].save("result.png")

Runs of helenai johnslegers-epic-diffusion-ov on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About johnslegers-epic-diffusion-ov huggingface.co Model

More johnslegers-epic-diffusion-ov license Visit here:

https://choosealicense.com/licenses/creativeml-openrail-m

johnslegers-epic-diffusion-ov huggingface.co

johnslegers-epic-diffusion-ov huggingface.co is an AI model on huggingface.co that provides johnslegers-epic-diffusion-ov's model effect (), which can be used instantly with this helenai johnslegers-epic-diffusion-ov model. huggingface.co supports a free trial of the johnslegers-epic-diffusion-ov model, and also provides paid use of the johnslegers-epic-diffusion-ov. Support call johnslegers-epic-diffusion-ov model through api, including Node.js, Python, http.

johnslegers-epic-diffusion-ov huggingface.co Url

https://huggingface.co/helenai/johnslegers-epic-diffusion-ov

helenai johnslegers-epic-diffusion-ov online free

johnslegers-epic-diffusion-ov huggingface.co is an online trial and call api platform, which integrates johnslegers-epic-diffusion-ov's modeling effects, including api services, and provides a free online trial of johnslegers-epic-diffusion-ov, you can try johnslegers-epic-diffusion-ov online for free by clicking the link below.

helenai johnslegers-epic-diffusion-ov online free url in huggingface.co:

https://huggingface.co/helenai/johnslegers-epic-diffusion-ov

johnslegers-epic-diffusion-ov install

johnslegers-epic-diffusion-ov is an open source model from GitHub that offers a free installation service, and any user can find johnslegers-epic-diffusion-ov on GitHub to install. At the same time, huggingface.co provides the effect of johnslegers-epic-diffusion-ov install, users can directly use johnslegers-epic-diffusion-ov installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

johnslegers-epic-diffusion-ov install url in huggingface.co:

https://huggingface.co/helenai/johnslegers-epic-diffusion-ov

Url of johnslegers-epic-diffusion-ov

johnslegers-epic-diffusion-ov huggingface.co Url

Provider of johnslegers-epic-diffusion-ov huggingface.co

helenai
ORGANIZATIONS

Other API from helenai

huggingface.co

Total runs: 803
Run Growth: -7
Growth Rate: -0.77%
Updated:April 13 2023
huggingface.co

Total runs: 709
Run Growth: 52
Growth Rate: 6.27%
Updated:March 12 2023