From e4cf4b515b5ce09c66eb24be7e1e0ed0cb22f0a4 Mon Sep 17 00:00:00 2001 From: Bat Country Date: Sun, 20 Oct 2024 22:27:37 -0700 Subject: [PATCH] converting chars to raw string to deal with invalid escape SyntaxWarning #14 --- post_processing_nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post_processing_nodes.py b/post_processing_nodes.py index cdb0cc3..dfd9322 100644 --- a/post_processing_nodes.py +++ b/post_processing_nodes.py @@ -98,7 +98,7 @@ class AsciiArt: def ascii_art_effect(image: torch.Tensor, char_size: int, font_size: int): - chars = " .'`^\",:;I1!i><-+_-?][}{1)(|\/tfjrxnuvczXYUCLQ0OZmwqpbdkhao*#MW&8%B@$" + chars = r" .'`^\",:;I1!i><-+_-?][}{1)(|\/tfjrxnuvczXYUCLQ0OZmwqpbdkhao*#MW&8%B@$" small_image = image.resize((image.size[0] // char_size, image.size[1] // char_size), Image.Resampling.NEAREST) def get_char(value):