sm4ll Wrapper Sampler - Paid API:
The VTONAPIPaidNode is a specialized node designed to interface with a paid API for virtual try-on (VTON) applications. This node is part of the sm4ll Wrapper Sampler suite and is tailored for users who require enhanced capabilities and reliability offered by a paid service. Its primary function is to facilitate the virtual fitting of fashion items such as eyewear, footwear, and garments onto a base image of a person. By leveraging the paid API, this node ensures higher quality results and more robust performance, making it an ideal choice for professional applications where accuracy and detail are paramount. The node is designed to handle image processing tasks efficiently, providing users with a seamless experience in generating realistic virtual try-on images.
sm4ll Wrapper Sampler - Paid API Input Parameters:
base_person_image
This parameter represents the image of the person onto which the virtual product will be applied. It is crucial for the node's execution as it serves as the canvas for the virtual try-on process. The quality and resolution of this image can significantly impact the final output, with higher quality images yielding better results.
product_image
The product_image parameter is the image of the fashion item to be virtually tried on. This could be an image of eyewear, footwear, or clothing. The clarity and detail of this image are important as they directly affect how realistically the product is rendered on the base person image.
model_choice
This parameter allows you to select the type of model to be used for the virtual try-on process. Options include "eyewear," "footwear," "full-body," and "top garment," with "eyewear" being the default. The choice of model influences the fitting algorithm and the areas of the base image that will be modified.
api_key
The api_key is a string parameter required to authenticate and access the paid API services. It ensures that only authorized users can utilize the enhanced features of the paid API. The default value is "ym_your_api_key_here," and it should be replaced with a valid API key provided by the service.
quality
This parameter determines the quality of the output image, with options "Normal" and "High." The default setting is "Normal." Selecting "High" will result in better image quality but may require more processing time and resources.
base_person_mask
An optional parameter, base_person_mask, allows you to provide a mask image that defines specific areas of the base person image to be considered during the virtual try-on process. This can be useful for refining the application of the product image, ensuring it aligns correctly with the desired regions.
sm4ll Wrapper Sampler - Paid API Output Parameters:
IMAGE
The output of the VTONAPIPaidNode is an IMAGE, which is the result of the virtual try-on process. This image showcases the product image applied to the base person image, providing a realistic representation of how the fashion item would look when worn. The quality and accuracy of this output are influenced by the input parameters and the settings chosen during the process.
sm4ll Wrapper Sampler - Paid API Usage Tips:
- Ensure that the base_person_image and product_image are of high quality to achieve the best results in the virtual try-on process.
- Use the model_choice parameter to select the appropriate model type that matches the product image for more accurate fitting.
- Keep your api_key secure and ensure it is valid to access the paid API services without interruptions.
sm4ll Wrapper Sampler - Paid API Common Errors and Solutions:
HTTP 401 Unauthorized
- Explanation: This error occurs when the provided api_key is invalid or missing.
- Solution: Verify that you have entered a valid api_key and that it is correctly formatted.
HTTP 404 Not Found
- Explanation: This error indicates that the API endpoint could not be reached, possibly due to an incorrect URL or network issues.
- Solution: Check the API endpoint URL for accuracy and ensure your network connection is stable.
Not an image: <content_type>
- Explanation: The response from the API was not an image, which could be due to an incorrect request or server-side issue.
- Solution: Review the input parameters and ensure they are correctly set. If the issue persists, contact the API provider for support.
Could not download result image
- Explanation: This error suggests that the node was unable to retrieve the processed image from the API.
- Solution: Check your network connection and ensure that the API service is operational. Retry the request or contact support if necessary.
