打印输出问题,print problem #225

Open
opened 2026-01-29 21:45:52 +00:00 by claunia · 2 comments
Owner

Originally created by @wlz987 on GitHub (Aug 9, 2022).

这个
Tile 1/9
Tile 2/9
怎么关掉啊

how to cancel
Tile 1/9
Tile 2/9
that be printed in screen

Originally created by @wlz987 on GitHub (Aug 9, 2022). 这个 Tile 1/9 Tile 2/9 怎么关掉啊 how to cancel Tile 1/9 Tile 2/9 that be printed in screen
Author
Owner

@aylitat commented on GitHub (Oct 25, 2023):

我也想知道。。。。

@aylitat commented on GitHub (Oct 25, 2023): 我也想知道。。。。
Author
Owner

@ghost commented on GitHub (Apr 30, 2024):

That message is not from this repository, this is from the library realesrgan

https://github.com/xinntao/Real-ESRGAN/blob/a4abfb2979a7bbff3f69f58f58ae324608821e27/realesrgan/utils.py#L119

You can find the code below from this link

                except RuntimeError as error:
                    print('Error', error)
                print(f'\tTile {tile_idx}/{tiles_x * tiles_y}')

                # output tile area on total image

You need to remove that print line from the realesrgan code.

So, find the location where the realesrgan code is (Ex, import realesrgan; realesrgan.ROOT_DIR)
Go to the location, find the util.py file and remove the print line

Have a nice day :)

@ghost commented on GitHub (Apr 30, 2024): That message is not from this repository, this is from the library `realesrgan` [https://github.com/xinntao/Real-ESRGAN/blob/a4abfb2979a7bbff3f69f58f58ae324608821e27/realesrgan/utils.py#L119](url) You can find the code below from this link ``` except RuntimeError as error: print('Error', error) print(f'\tTile {tile_idx}/{tiles_x * tiles_y}') # output tile area on total image ``` You need to remove that print line from the realesrgan code. So, find the location where the realesrgan code is (Ex, import realesrgan; realesrgan.ROOT_DIR) Go to the location, find the util.py file and remove the print line Have a nice day :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#225