CSAILVision / NetDissect

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

No such file or directory: 'probes/pytorch_alexnet_imagenet/html-features.html' #14

Open filltong opened 6 years ago

filltong commented 6 years ago

script/rundissect_pytorch.sh: line 199: globexists: command not found Generating graph Traceback (most recent call last): File "src/graphprobe.py", line 114, in stats = summarize(loadviz(directory, blob), args.threshold, File "src/graphprobe.py", line 20, in loadviz with open(html_fn) as f: IOError: [Errno 2] No such file or directory: 'probes/pytorch_alexnet_imagenet/html-features.html'

gauenk commented 6 years ago

see issue #10

this can be fixed by pasting the following code snippet into the script/rundissect_pytorch.sh

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