Spaces:
Running
on
Zero
is_multiimage: bool, parameter missing from the API
Hello Jeffrey hope you are doing amazing, i've been trying to use the multi image feature though the API with no luck, all tries and structures even following the API documentation fail. after going deeper into the code i found there is a missing parameter from the API which is "is_multiimage: bool,"
@spaces.GPU
def image_to_3d(
image: Image.Image,
multiimages: List[Tuple[Image.Image, str]],
is_multiimage: bool, # This is used in their code
seed: int,
# ...
additionally if you check the network request in the terminal, you see it expects 9 parameters. with the 2 object always being null.
additionally when i tried to record the api session always all parameters get displaced one value down, this happens both while using the space and checking the network requests in the terminal and in the api itself.:
/image_to_3d",
{
image: None,
multiimages: [{"image":handle_file('https://jeffreyxiang-trellis.hf.space/file=/tmp/gradio/ea82783290eb0e849ff6cfb43327dfe348358280dde392b64453397ba998e09e/image.png'),"caption":None},{"image":handle_file('https://jeffreyxiang-trellis.hf.space/file=/tmp/gradio/e632612405443b249de9a9279771c4816d77c199c3afd5f9a454756948b02274/image.png'),"caption":None}],
seed: None, ///as you can see the values got displaced to the next parameter.
ss_guidance_strength: 911347425,
ss_sampling_steps: 7.5,
slat_guidance_strength: 12,
slat_sampling_steps: 3,
multiimage_algo: "12",
});
the only issue now is that even if i try to use is_multiimage in the api it gets rejected because the is_multiimage: bool, is not configured in the API of the space, would absolutly love if you could make it available so we can use the feature as i always get an error when sending multiple images does not matter what i do.
thanks!