Readme
This model doesn't have a readme.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run nsfw-api/realvis-hyper-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"nsfw-api/realvis-hyper-lora:9b1951176565c8f810f28ed140787a81c8f49b49e2d40d0a135d9491b95782bd",
input={
"cfg": 7,
"seed": 0,
"steps": 30,
"width": 768,
"height": 1024,
"scheduler": "karras",
"sampler_name": "dpmpp_2m",
"negative_prompt": "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry",
"hyperlora_weight": 0.5,
"instantid_weight": 0.5,
"facedetail_strength": 0.35
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
No output yet! Press "Submit" to start a prediction.
This model costs approximately $0.035 to run on Replicate, or 28 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.
This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 36 seconds. The predict time for this model varies significantly based on the inputs.
This model doesn't have a readme.