Skip to content
Snippets Groups Projects
Commit e72ff776 authored by BIRK Renaud's avatar BIRK Renaud
Browse files

fix

parent fbb694c2
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,11 @@ from gradio_client import Client, handle_file
client = Client("JeffreyXiang/TRELLIS")
result = client.predict(
api_name="/start_session"
)
print(result)
preprocessed_image = client.predict(
image=handle_file('https://i.pinimg.com/564x/79/b3/6d/79b36deeb891cf65e41c743f5350d6cf.jpg'),
api_name="/preprocess_image"
......@@ -17,14 +22,13 @@ result = client.predict(
image=handle_file(preprocessed_image),
multiimages=[],
seed=rand_seed,
ss_guidance_strength=rand_seed,
ss_sampling_steps=7.5,
slat_guidance_strength=12,
slat_sampling_steps=3,
multiimage_algo="12",
ss_guidance_strength=7.5,
ss_sampling_steps=12,
slat_guidance_strength=3,
slat_sampling_steps=12,
multiimage_algo="stochastic",
api_name="/image_to_3d"
)
print(result)
print("image_to_3d ok")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment