Guest User

Untitled

a guest
Oct 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. function defineG(input_nc, output_nc, ngf)
  2. local netG = nil
  3. if opt.which_model_netG == "encoder_decoder" then netG = defineG_encoder_decoder(input_nc, output_nc, ngf)
  4. elseif opt.which_model_netG == "unet" then netG = defineG_unet(input_nc, output_nc, ngf)
  5. elseif opt.which_model_netG == "unet_128" then netG = defineG_unet_128(input_nc, output_nc, ngf)
  6. elseif opt.which_model_netG == "unet_512" then netG = defineG_unet_512(input_nc, output_nc, ngf)
  7. else error("unsupported netG model")
  8. end
  9.  
  10. netG:apply(weights_init)
  11.  
  12. return netG
  13. end
Add Comment
Please, Sign In to add comment