-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start building the keras implementation of deepcover testing
- Loading branch information
1 parent
cd76f11
commit 73b2016
Showing
3 changed files
with
40 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
import argparse | ||
import sys | ||
|
||
import keras | ||
from keras.models import * | ||
from keras.layers import * | ||
from keras import * | ||
|
||
|
||
def main(): | ||
parser=argparse.ArgumentParser( | ||
description='DeepCover: Uncover Bugs in Deep Learning' ) | ||
|
||
parser.add_argument('model', action='store', nargs='+', help='The input neural network model (.h5)') | ||
|
||
parser.add_argument( | ||
'--cover', metavar='ss', action='store', help='The covering method: ss, sv, ds, dv', default='ss') | ||
|
||
args=parser.parse_args() | ||
|
||
model = load_model(args.model[0]) | ||
|
||
if not (args.cover in ['ss', 'sv', 'ds', 'dv']): | ||
print ('Covering method cannot be recognized: ' + args.cover) | ||
sys.exit(0) | ||
|
||
print ('\n== WARNING == \n') | ||
print ( | ||
'The input model: ' + args.model[0] + '\n' + | ||
'The covering method: ' + args.cover + '\n' | ||
) | ||
print ('This keras compatible implementation of DeepCover testing is currently under deverlopment...\n') | ||
print ('=============\n') | ||
|
||
if __name__=="__main__": | ||
main() |
This file was deleted.
Oops, something went wrong.