Run tommoore515/pix2pix_tf_albedo2pbrmaps using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"tommoore515/pix2pix_tf_albedo2pbrmaps:21bd96b6e69f40e54502d67798f9025ab9e4a9e08f2a1b51dde5131b129a825e",
input={
"model": "albedo2normal",
"imagepath": "https://replicate.delivery/mgxm/f659f510-534d-4d31-a96d-4c2eac6cda19/Diagonal_cedar.jpg"
}
)
# To access the file URL:print(output.url())
#=> "http://example.com"# To write the file to disk:withopen("my-image.png", "wb") as file:
file.write(output.read())