Coder Social home page Coder Social logo

dnn-quant-ocs's People

Contributors

amishacorns avatar rzhao01 avatar zhangzhiru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dnn-quant-ocs's Issues

Question about quantization method?

Hi, thank you for sharing the code.
I was wondering whether the quantization method used waas "per-channel" or "per-layer".
I am having trouble looking up the setup in your paper.

Thank you in advance.

Best regards.

The Top-1 score obtained by testing ResNet50 with the test set is strange.

Hi authors, I have a problem while inference ResNet50 with the ImageNet test set.
When I inference ResNet50 with the ImageNet test set, I got a strange result that the Top-1 score is 0.102.
However, if I inference ResNet50 with the ImageNet train set, the Top-1 score that I got is about 75.50.
As mentioned above, it's quite strange during inference with the test set.
I've trained it for 50 epochs, but the result told me that the model didn't learn anything from training, it's guessing.
The following picture with blue values is the result I got from the train set, the other is the result I got from the test set.
Hope you can give me some advice to fix this strange situation, thanks.

The result from the train set:
Screenshot from 2022-04-19 19-24-04

The result from the test set:
Screenshot from 2022-04-19 19-23-50

assert(self.profile_info)

Traceback (most recent call last):
File "compress_classifier.py", line 765, in
main()
File "compress_classifier.py", line 298, in main
return evaluate_model(model, criterion, train_loader, test_loader, pylogger, args)
File "compress_classifier.py", line 701, in evaluate_model
top1, _, _ = test(test_loader, model, criterion, loggers, args=args)
File "compress_classifier.py", line 483, in test
return _validate(test_loader, model, criterion, loggers, args)
File "compress_classifier.py", line 515, in _validate
output = model(inputs)
File "/home/songyan3/anaconda3/envs/python3.6/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/home/songyan3/anaconda3/envs/python3.6/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 114, in forward
outputs = self.parallel_apply(replicas, inputs, kwargs)
File "/home/songyan3/anaconda3/envs/python3.6/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 124, in parallel_apply
return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
File "/home/songyan3/anaconda3/envs/python3.6/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py", line 65, in parallel_apply
raise output
File "/home/songyan3/anaconda3/envs/python3.6/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py", line 41, in _worker
output = module(*input, **kwargs)
File "/home/songyan3/anaconda3/envs/python3.6/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/home/songyan3/anaconda3/envs/python3.6/lib/python3.6/site-packages/torchvision/models/resnet.py", line 139, in forward
x = self.conv1(x)
File "/home/songyan3/anaconda3/envs/python3.6/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/home/songyan3/experiments/dnn-quant-ocs/distiller/quantization/ocs.py", line 169, in forward
assert(self.profile_info)

Excuse me, have you met such question in running example.sh? it seems that self.profile_info has not been assigned =A=

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.