🍒Manual_MetadataInput / 填写元数据:
The Manual_MetadataInput node is designed to facilitate the manual entry of metadata parameters, producing a comprehensive metadata dictionary as output. This node is particularly beneficial for AI artists who wish to have precise control over the metadata associated with their images. One of its standout features is the ability to automatically retrieve image dimensions, streamlining the process of metadata creation. By allowing users to input metadata manually, this node provides flexibility and customization, ensuring that the metadata accurately reflects the user's intentions and the specifics of the image. This capability is crucial for artists who need to maintain detailed records of their creative process or for those who wish to embed specific information within their digital artworks.
🍒Manual_MetadataInput / 填写元数据 Input Parameters:
prompt
The prompt parameter is a string input that allows you to enter descriptive text or keywords related to the image. This parameter supports multiline input, enabling you to provide detailed descriptions or multiple keywords. The prompt serves as a key element in defining the context or theme of the image, which can be crucial for categorization, searchability, and understanding the artistic intent. There are no specific minimum or maximum values, but it is recommended to be concise yet descriptive to effectively convey the image's essence.
🍒Manual_MetadataInput / 填写元数据 Output Parameters:
metadata dictionary
The output of the Manual_MetadataInput node is a metadata dictionary. This dictionary contains all the manually entered metadata parameters, including any automatically retrieved image dimensions. The metadata dictionary is essential for storing and transferring information about the image, such as its description, dimensions, and any other relevant data. This output can be used for documentation purposes, to enhance searchability, or to embed metadata within the image file itself, ensuring that the information is preserved alongside the artwork.
🍒Manual_MetadataInput / 填写元数据 Usage Tips:
- Utilize the
promptparameter to include detailed and relevant keywords or descriptions that accurately reflect the image's content and artistic intent. - Take advantage of the node's ability to automatically retrieve image dimensions to ensure that all necessary metadata is captured without manual measurement.
🍒Manual_MetadataInput / 填写元数据 Common Errors and Solutions:
输入必须是 torch.Tensor 类型的图像张量。
- Explanation: This error occurs when the input provided is not a
torch.Tensortype image tensor, which is required for the node to function correctly. - Solution: Ensure that the input image is converted to a
torch.Tensortype before passing it to the node. This can typically be done using appropriate libraries or conversion functions.
无法处理张量维度: {image_tensor.ndim}
- Explanation: This error indicates that the node encountered an image tensor with dimensions that it cannot process.
- Solution: Verify that the image tensor has the correct dimensions expected by the node. If necessary, reshape or adjust the tensor dimensions to match the required format.
