How to check model summary? #139

Open
opened 2026-01-29 21:43:37 +00:00 by claunia · 1 comment
Owner

Originally created by @neso613 on GitHub (Dec 27, 2021).

I have installled and downloaded the model and run it- it worked.
Now, when I checked model summary, using this

restorer = GFPGANer(
model_path=args.model_path,
upscale=args.upscale,
arch=args.arch,
channel_multiplier=args.channel,
bg_upsampler=bg_upsampler)
print("\n\n...",restorer,'\n\n')

I got----> <gfpgan.utils.GFPGANer object at 0x7f8758589a90>
How to check model summary,input/output details?

Originally created by @neso613 on GitHub (Dec 27, 2021). I have installled and downloaded the model and run it- it worked. Now, when I checked model summary, using this > restorer = GFPGANer( model_path=args.model_path, upscale=args.upscale, arch=args.arch, channel_multiplier=args.channel, bg_upsampler=bg_upsampler) print("\n\n...",restorer,'\n\n') **I got----> <gfpgan.utils.GFPGANer object at 0x7f8758589a90>** How to check model summary,input/output details?
Author
Owner

@xinntao commented on GitHub (Jan 8, 2022):

The restorer = GFPGANer(... is an encapsulated class.

  1. You can check the network arch from the source codes: https://github.com/TencentARC/GFPGAN/tree/master/gfpgan/archs
  2. You can check the input/output by printing their shapes.
@xinntao commented on GitHub (Jan 8, 2022): The `restorer = GFPGANer(...` is an encapsulated class. 1. You can check the network arch from the source codes: https://github.com/TencentARC/GFPGAN/tree/master/gfpgan/archs 2. You can check the input/output by printing their shapes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#139