Giter VIP home page Giter VIP logo

gac's Issues

TypeError: __init__() got an unexpected keyword argument 'T'

Hello author, very interested in your work, but I am tuning the code is the following error occurs, looking forward to your reply.
Files already downloaded and verified
Files already downloaded and verified
Traceback (most recent call last):
File "main.py", line 151, in
parallel_model = msresnet18(num_classes=100,T=6)
File "/home/GAC-main/CODE/CIFAR/models/MS_ResNet.py", line 167, in msresnet18
return _resnet('resnet18', BasicBlock_MS, [3, 3, 2],
File "/home/GAC-main/CODE/CIFAR/models/MS_ResNet.py", line 164, in _resnet
model = ResNet(block, layers, **kwargs)
TypeError: init() got an unexpected keyword argument 'T'

Can't reproduce cifar10/cifar100 results

Hello authors, I'm really interested in your work and thank you for sharing your codes.
But I got some questions on reproducing results on Cifar10/100.

  1. when I trained MsResNet18 model based on your instructions on github, the results on Cifar10/100 didn't even get close to the results on the AAAI24 paper.
  2. And using GAC encoder didn't seem to have much improvement on the performance (setting self.GAC=False on Ms_ResNet.py didn't show much accuracy drop on Cifar10).
  3. When I changed hyperparameter settings on the github code based on the AAAI24 paper appendix, LIF param (threshold, tau) = (1, 0.5) -> (0.5, 0.25), accuracy showed significant drop.
    Could you tell me what am I missing in this experiment? Thank you in advance!

TypeError: TET_loss() missing 5 required positional arguments: 'outputs', 'labels', 'criterion', 'means', and 'lamb' criterion = TET_loss().cuda()

Hello author, very interested in your work, but I am tuning the imagenet code is the following error occurs, looking forward to your reply.
Traceback (most recent call last):
File "train_amp.py", line 212, in
Traceback (most recent call last):
File "train_amp.py", line 212, in
criterion = TET_loss().cuda()
TypeError: TET_loss() missing 5 required positional arguments: 'outputs', 'labels', 'criterion', 'means', and 'lamb'
criterion = TET_loss().cuda()
TypeError: TET_loss() missing 5 required positional arguments: 'outputs', 'labels', 'criterion', 'means', and 'lamb'

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.