CSAILVision / NetDissect

Network Dissection http://netdissect.csail.mit.edu for quantifying interpretability of deep CNNs.
MIT License
449 stars 115 forks source link

missing function from rundissect_pytorch_external.sh #10

Open rosenfeldamir opened 6 years ago

rosenfeldamir commented 6 years ago

the function globexists is missing from rundissect_pytorch_external.sh:

./script/rundissect_pytorch_external.sh: line 209: globexists: command not found

it does exist, however, in rundissect.sh

AlamiMejjati commented 6 years ago

same problem here

gauenk commented 6 years ago

The "globexists" function should be defined in the file. I am guessing the authors read this stack overflow page, and forgot to include this in their bash script.

If you want to fix this, you can add to the top of ./script/rundissect_pytorch_external.sh:

# For expanding globs http://stackoverflow.com/questions/2937407                
function globexists {                                                           
  set +f                                                                        
  test -e "$1" -o -L "$1";set -f                                                
}