Code Monkey home page Code Monkey logo

Comments (4)

lmxyy avatar lmxyy commented on June 11, 2024

Could you provide some more information? What is the type of your m1 and m2?

from gan-compression.

saijo0404 avatar saijo0404 commented on June 11, 2024

I try to print m1 and m2 type, the result look like this.

distiller [ResnetDistiller] was created
Load network at logs/pix2pix/edges2shoes-r/train/checkpoints/latest_net_G.pth
isinstance(netA, nn.DataParallel):  False
isinstance(netB, nn.DataParallel):  False
isinstance(m1, nn.Conv2d) and isinstance(m2, (nn.Conv2d, SuperConv2d)):  True
m1 type:  <class 'torch.nn.modules.conv.Conv2d'>
m2 type:  <class 'torch.nn.modules.conv.Conv2d'>
isinstance(m1, nn.Conv2d) and isinstance(m2, (nn.Conv2d, SuperConv2d)):  True
m1 type:  <class 'torch.nn.modules.conv.Conv2d'>
m2 type:  <class 'torch.nn.modules.conv.Conv2d'>
isinstance(m1, nn.Conv2d) and isinstance(m2, (nn.Conv2d, SuperConv2d)):  True
m1 type:  <class 'torch.nn.modules.conv.Conv2d'>
m2 type:  <class 'torch.nn.modules.conv.Conv2d'>
isinstance(m1, nn.Conv2d) and isinstance(m2, (nn.Conv2d, SuperConv2d)):  False
m1 type:  <class 'models.modules.resnet_architecture.resnet_generator.ResnetBlock'>
m2 type:  <class 'models.modules.resnet_architecture.resnet_generator.ResnetBlock'>

from gan-compression.

lmxyy avatar lmxyy commented on June 11, 2024

I see. This is a minor bug in weight_transfer.py because of a typo. I've fixed it in this commit. Could you pull the latest commit and try again?

from gan-compression.

lmxyy avatar lmxyy commented on June 11, 2024

I will close this issue. Let me know if there are some further issues!

from gan-compression.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.