Shift-Net_pytorch icon indicating copy to clipboard operation
Shift-Net_pytorch copied to clipboard

Why are the size of inpainting models so big?

Open mychina75 opened this issue 4 years ago • 2 comments

Hi, looks like most of inpainting models are more bigger than 200MB. Is it possible to reduce the model size to less than 100MB while keep current performance? thank you~

mychina75 avatar May 18 '20 07:05 mychina75

Change here https://github.com/Zhaoyi-Yan/Shift-Net_pytorch/blob/master/models/modules/shift_unet.py#L41. Relapce some of them with "residual blocks", it should be weight-lighter than unet-skip blocks, as unet-skip block is feature-concatenating while residual-block is feature-adding.

Zhaoyi-Yan avatar May 18 '20 08:05 Zhaoyi-Yan

woo... thank you, I will try this~

mychina75 avatar May 18 '20 10:05 mychina75