all AI news
5 lines of Python code to change the posture of photography
Oct. 23, 2023, 4:01 a.m. | AnyISalIn
DEV Community dev.to
You can install the Novita Python SDK using just one command
pip install novita-client
then you can get NOVITA_API_KEY
from https://novita.ai/get-started/
Finally, you can try the mix pose demo by following this code.
import os
from novita_client import NovitaClient
from novita_client.utils import base64_to_image
client = NovitaClient(os.getenv('NOVITA_API_KEY'))
res = client.mixpose(
image="https://image.uniqlo.com/UQ/ST3/my/imagesgoods/455359/item/mygoods_23_455359.jpg?width=494",
pose_image="https://image.uniqlo.com/UQ/ST3/ca/imagesgoods/455359/item/cagoods_02_455359.jpg?width=494",
)
base64_to_image(res.image_file).save("./mixpose.png")
novita-client is …
ai api change client code command demo import install photography pip posture python save sdk stablediffusion
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Founding AI Engineer, Agents
@ Occam AI | New York
AI Engineer Intern, Agents
@ Occam AI | US
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne