Giter Site home page Giter Site logo

Comments (8)

TonightGo avatar TonightGo commented on May 21, 2024

Hi, gleefeng, I got the following error when I ran the command "python3 compress_classifier.py --arch simplenet_cifar ../../../data.cifar10 -p 30 -j=1 --lr=0.01":

2018-10-22 17:03:03,745 - Log file for this run: /home/project/compress/distiller-master/examples/classifier_compression/logs/2018.10.22-170303/2018.10.22-170303.log
2018-10-22 17:03:03,745 - Number of CPUs: 24
2018-10-22 17:03:03,850 - Number of GPUs: 8
2018-10-22 17:03:03,850 - CUDA version: 8.0.61
2018-10-22 17:03:03,850 - CUDNN version: 7102
2018-10-22 17:03:03,851 - Kernel: 4.4.0-98-generic
2018-10-22 17:03:03,851 - Python: 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609]
2018-10-22 17:03:03,851 - PyTorch: 0.4.0
2018-10-22 17:03:03,851 - Numpy: 1.14.3
2018-10-22 17:03:03,852 - Traceback (most recent call last):
File "compress_classifier.py", line 686, in
main()
File "compress_classifier.py", line 179, in main
apputils.log_execution_env_state(sys.argv, gitroot=module_path)
File "/home/project/compress/distiller-master/apputils/execution_env.py", line 78, in log_execution_env_state
log_git_state()
File "/home/project/compress/distiller-master/apputils/execution_env.py", line 56, in log_git_state
repo = Repo(gitroot, search_parent_directories=True)
File "/home/project/compress/distiller-master/env/lib/python3.5/site-packages/git/repo/base.py", line 168, in init
raise InvalidGitRepositoryError(epath)
git.exc.InvalidGitRepositoryError: /home/project/compress/distiller-master

2018-10-22 17:03:03,852 -
2018-10-22 17:03:03,852 - Log file for this run: /home/project/compress/distiller-master/examples/classifier_compression/logs/2018.10.22-170303/2018.10.22-170303.log

Do you have this issue?

from distiller.

gleefeng avatar gleefeng commented on May 21, 2024

You can git clone this project to solve this problem. some git messages must be checked by execution_env.py

from distiller.

nzmora avatar nzmora commented on May 21, 2024

Hi @gleefeng ,

Unfortunately resuming from a quantization session is not supported currently. See #21 (comment).

Cheers,
Neta

from distiller.

TonightGo avatar TonightGo commented on May 21, 2024

You can git clone this project to solve this problem. some git messages must be checked by execution_env.py

Yeah, it's ok, thank you!

from distiller.

hustzxd avatar hustzxd commented on May 21, 2024

I encountered the same problem:dog: I just want to evaluate the accuracy of quantized model.
Temporary modification:
quantizer.py:87

        # if train_with_fp_copy and optimizer is None:
        #     raise ValueError('optimizer cannot be None when train_with_fp_copy is True')

class WRPNQuantizer(Quantizer):

    def __init__(self, model, optimizer=None, bits_activations=32, bits_weights=32, bits_overrides=OrderedDict(),
                 quantize_bias=False):

from distiller.

guyjacob avatar guyjacob commented on May 21, 2024

@hustzxd the workaround you detail indeed works, thanks for posting here.
We'll work on a more permanent solution.

from distiller.

stvreumi avatar stvreumi commented on May 21, 2024

Hmmm...I also have problem here.
The quantized checkpoint can't be loaded for summary and testing, and the error message is the same.

from distiller.

guyjacob avatar guyjacob commented on May 21, 2024

We'll track this on #185, closing this one.

from distiller.

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.