GithubHelp home page GithubHelp logo

Comments (3)

nzmora avatar nzmora commented on May 22, 2024

Hi,

When compress_classifier.py is invoked, it saves some information about the execution environment, to make it easier later to compare and recreate experiment executions.

We collect three pieces of information regarding the git environment: the current branch, is the git working area clean or dirty (i.e. are you working with some local changes), and the tag of the had of the local git repo. See: https://github.com/NervanaSystems/distiller/blob/ab02df45374db22a22e160fdf518103b19819dcb/apputils/execution_env.py#L51-L66

This code searches up the directory tree, looking for your .git directory, but in your case it can't find this directory. I suspect that you run the example in a directory above where you cloned distiller. Is this correct? Can you send more about your directory hierarchy?

BTW, you can bypass this specific issue, by placing this line in remark: https://github.com/NervanaSystems/distiller/blob/ab02df45374db22a22e160fdf518103b19819dcb/apputils/execution_env.py#L78

Cheers,
Neta

from distiller.

TonightGo avatar TonightGo commented on May 22, 2024

em, I cannot use git clone command for the reason of network yesterday, so I download the package alternatively. Now it's no longer a problem. Thank you very much!

Hi,

When compress_classifier.py is invoked, it saves some information about the execution environment, to make it easier later to compare and recreate experiment executions.

We collect three pieces of information regarding the git environment: the current branch, is the git working area clean or dirty (i.e. are you working with some local changes), and the tag of the had of the local git repo. See:

distiller/apputils/execution_env.py

Lines 51 to 66 in ab02df4

 def log_git_state(): 
     """Log the state of the git repository. 

     It is useful to know what git tag we're using, and if we have outstanding code. 
     """ 
     repo = Repo(gitroot) 
     assert not repo.bare 

     if repo.is_dirty(): 
         logger.debug("Git is dirty") 
     try: 
         branch_name = repo.active_branch.name 
     except TypeError: 
         branch_name = "None, Git is in 'detached HEAD' state" 
     logger.debug("Active Git branch: %s", branch_name) 
     logger.debug("Git commit: %s" % repo.head.commit.hexsha) 

This code searches up the directory tree, looking for your .git directory, but in your case it can't find this directory. I suspect that you run the example in a directory above where you cloned distiller. Is this correct? Can you send more about your directory hierarchy?

BTW, you can bypass this specific issue, by placing this line in remark:

distiller/apputils/execution_env.py

Line 78 in ab02df4

log_git_state()
Cheers,
Neta

em, I cannot use git clone command for the reason of network yesterday, so I download the package alternatively. Now it's no longer a problem. Thank you very much!

from distiller.

nzmora avatar nzmora commented on May 22, 2024

Thanks, for bringing this up: I forgot that people can download the zip file!
I will add a graceful error handler in this case and then I'll close the issue again.

Thank you for reporting this!
Cheers,
Neta

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.