Skip to content

Commit

Permalink
Change reachability options for some
Browse files Browse the repository at this point in the history
  • Loading branch information
mldiego committed Jul 13, 2024
1 parent 2574491 commit 58a0d35
Showing 1 changed file with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,26 +384,37 @@
else
error("We don't have those");
end
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.8;
reachOptionsList{1} = reachOptions;
reachOptions = struct;
reachOptions.reachMethod = 'approx-star'; % default parameters
reachOptionsList{1} = reachOptions;
reachOptionsList{2} = reachOptions;

elseif contains(category, "vggnet16")
% vgg16: onnx to matlab
net = importNetworkFromONNX(onnx); % flattenlayer
nnvnet = "";
needReshape = 1;
reachOptions = struct;
reachOptions.reachMethod = 'approx-star'; % default parameters
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.9;
reachOptionsList{1} = reachOptions;
reachOptions = struct;
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.5;
reachOptionsList{2} = reachOptions;

elseif contains(category, "tllverify")
% tllverify: onnx to nnv
net = importNetworkFromONNX(onnx,"InputDataFormats", "BC", 'OutputDataFormats',"BC");
nnvnet = matlab2nnv(net);
reachOptions = struct;
reachOptions.reachMethod = 'approx-star'; % default parameters
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.9;
reachOptionsList{1} = reachOptions;
reachOptions = struct;
reachOptions.reachMethod = 'approx-star'; % default parameters
reachOptionsList{2} = reachOptions;

elseif contains(category, "vit")
% vit: onnx to matlab
Expand Down Expand Up @@ -459,10 +470,10 @@
needReshape = 1;
reachOptions = struct;
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.5;
reachOptions.relaxFactor = 0.9;
reachOptionsList{1} = reachOptions;
reachOptions = struct;
reachOptions.reachMethod = 'approx-star'; % default parameters
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.5;
reachOptionsList{2} = reachOptions;

elseif contains(category, "tinyimagenet")
Expand Down

0 comments on commit 58a0d35

Please sign in to comment.