fusing / stable-diffusion-flax-new

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: September 21 2022

Introduction of stable-diffusion-flax-new

Model Details of stable-diffusion-flax-new

#!/usr/bin/env python3
from diffusers import FlaxStableDiffusionPipeline
from jax import pmap
import numpy as np
import jax
from flax.jax_utils import replicate
from flax.training.common_utils import shard


prng_seed = jax.random.PRNGKey(0)
num_inference_steps = 50

pipeline, params = FlaxStableDiffusionPipeline.from_pretrained("fusing/stable-diffusion-flax-new", use_auth_token=True)
del params["safety_checker"]

# pmap
p_sample = pmap(pipeline.__call__, static_broadcasted_argnums=(3,))

# prep prompts
prompt = "A cinematic film still of Morgan Freeman starring as Jimi Hendrix, portrait, 40mm lens, shallow depth of field, close up, split lighting, cinematic"
num_samples = jax.device_count()
prompt = num_samples * [prompt]
prompt_ids = pipeline.prepare_inputs(prompt)

# replicate
params = replicate(params)
prng_seed = jax.random.split(prng_seed, 8)
prompt_ids = shard(prompt_ids)

# run
images = p_sample(prompt_ids, params, prng_seed, num_inference_steps).images

# get pil images
images_pil = pipeline.numpy_to_pil(np.asarray(images.reshape((num_samples,) + images.shape[-3:])))

import ipdb; ipdb.set_trace()
print("Images should be good")
# images_pil[0].save(...)

Runs of fusing stable-diffusion-flax-new 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 stable-diffusion-flax-new huggingface.co Model

stable-diffusion-flax-new huggingface.co

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

stable-diffusion-flax-new huggingface.co Url

https://huggingface.co/fusing/stable-diffusion-flax-new

fusing stable-diffusion-flax-new online free

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

fusing stable-diffusion-flax-new online free url in huggingface.co:

https://huggingface.co/fusing/stable-diffusion-flax-new

stable-diffusion-flax-new install

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

stable-diffusion-flax-new install url in huggingface.co:

https://huggingface.co/fusing/stable-diffusion-flax-new

Url of stable-diffusion-flax-new

stable-diffusion-flax-new huggingface.co Url

Provider of stable-diffusion-flax-new huggingface.co

fusing
ORGANIZATIONS

Other API from fusing

huggingface.co

Total runs: 5.3K
Run Growth: 1.5K
Growth Rate: 27.84%
Updated:August 06 2022
huggingface.co

Total runs: 120
Run Growth: 93
Growth Rate: 77.50%
Updated:July 18 2022
huggingface.co

Total runs: 44
Run Growth: 31
Growth Rate: 70.45%
Updated:July 18 2022
huggingface.co

Total runs: 12
Run Growth: 11
Growth Rate: 100.00%
Updated:December 19 2022
huggingface.co

Total runs: 11
Run Growth: 8
Growth Rate: 72.73%
Updated:November 21 2022
huggingface.co

Total runs: 9
Run Growth: 9
Growth Rate: 100.00%
Updated:June 28 2022
huggingface.co

Total runs: 8
Run Growth: 4
Growth Rate: 57.14%
Updated:December 07 2022
huggingface.co

Total runs: 7
Run Growth: 0
Growth Rate: 0.00%
Updated:May 16 2023
huggingface.co

Total runs: 6
Run Growth: -2
Growth Rate: -40.00%
Updated:July 06 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 21 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 17 2022