#!/bin/bash
# This is to merge split alexnet pretrained model files to a .npy file.
# They are split because the original file is too large for Github's 100MB limit.
ROOT=`dirname $0`
# makedir 'pretrained_model'
cat $ROOT/alexnet_imagenet.npy.split.a{a..c} > $ROOT/alexnet_imagenet.npy
1、cd 到.sh脚本文件所在位置
2、git bash 中输入‘./prepare_pretrained_alexnet.sh
3、注意文件对应位置
4、如果源文件里是
cat $ROOT/pretrained_model/alexnet_imagenet.npy.split.a{a..c} > $ROOT/alexnet_imagenet.npy
这时候需要新建一个 pretrained_model文件夹才可以