UltraSketch is a diffusion model that has been trained primarily to convert
scientific figures into sketches with a hand-drawn style. It is based on
SD3_UltraEdit_w_mask
and was fine-tuned on
SketchFig
. In addition,
figures from
DaTi
k
Z
v2
rendered in a hand-drawn style using
Rough.js
, as well as the
Sketchy
Database
and
Photo
Sketching
datasets, have been used for
data augmentation. Check out the
DeTi
k
Zify
project for more
information.
Usage
from PIL import Image
from datasets import load_dataset
from diffusers import DiffusionPipeline
import torch
figure = load_dataset("nllg/datikz-v2", split="train")['image'][0]
pipe = DiffusionPipeline.from_pretrained(
pretrained_model_name_or_path="nllg/ultrasketch",
custom_pipeline="nllg/ultrasketch",
trust_remote_code=True,
torch_dtype=torch.float16,
device_map="balanced"
)
sketch = pipe(
prompt="Turn it into a hand-drawn sketch",
image=figure,
mask_img=Image.new("RGB", figure.size, "white"),
num_inference_steps=50,
image_guidance_scale=1.7,
guidance_scale=1.5,
strength=0.9
).images[0]
sketch.save("sketch.png")
Runs of nllg ultrasketch on huggingface.co
11
Total runs
0
24-hour runs
-1
3-day runs
-9
7-day runs
0
30-day runs
More Information About ultrasketch huggingface.co Model
ultrasketch huggingface.co is an AI model on huggingface.co that provides ultrasketch's model effect (), which can be used instantly with this nllg ultrasketch model. huggingface.co supports a free trial of the ultrasketch model, and also provides paid use of the ultrasketch. Support call ultrasketch model through api, including Node.js, Python, http.
ultrasketch huggingface.co is an online trial and call api platform, which integrates ultrasketch's modeling effects, including api services, and provides a free online trial of ultrasketch, you can try ultrasketch online for free by clicking the link below.
nllg ultrasketch online free url in huggingface.co:
ultrasketch is an open source model from GitHub that offers a free installation service, and any user can find ultrasketch on GitHub to install. At the same time, huggingface.co provides the effect of ultrasketch install, users can directly use ultrasketch installed effect in huggingface.co for debugging and trial. It also supports api for free installation.