Skip to content

Commit

Permalink
Delete debugging files, adversarial attacks were incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
mldiego committed Feb 20, 2024
1 parent 24c8883 commit f05133b
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 334 deletions.
56 changes: 0 additions & 56 deletions code/nnv/examples/NN/medmnist/debugInconsistenciesNodulemnist.m

This file was deleted.

78 changes: 0 additions & 78 deletions code/nnv/examples/NN/medmnist/process_debugNodule.m

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 8 additions & 8 deletions code/nnv/examples/NN/medmnist/verify_medmnist3d.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
% Compute reachability for verification
results(1,i) = net.verify_robustness(I, reachOptions, targets(i));
results(2,i) = toc(t);
% disp(" ");

end

Expand Down Expand Up @@ -143,8 +142,8 @@
V(:,:,:,:,1) = vol; % center of set
V(:,:,:,:,2) = noise; % basis vectors
C = [1; -1]; % constraints
d = [255; noise_disturbance-255];
I = VolumeStar(V, C, d, 255-noise_disturbance, 255); % input set
d = [1; noise_disturbance-1];
I = VolumeStar(V, C, d, 1-noise_disturbance, 1); % input set

end

Expand All @@ -162,7 +161,7 @@
for j=1:size(vol,2)
for k=1:size(vol,3)
if vol(i,j,k) < threshold
at_vol(i,j,k) = 1;
at_vol(i,j,k) = 255;
ct = ct + 1;
if ct >= max_pixels
flag = 1;
Expand All @@ -180,11 +179,12 @@
end

% Define input set as VolumeStar
dif_vol = vol - at_vol;
noise = -dif_vol;
dif_vol = -vol + at_vol;
noise = dif_vol;
V(:,:,:,:,1) = vol; % center of set
V(:,:,:,:,2) = noise; % basis vectors
C = [1; -1]; % constraints
d = [255; noise_disturbance-255]; % constraints
I = VolumeStar(V, C, d, 255-noise_disturbance, 255); % input set
d = [1-noise_disturbance; -1]; % constraints
I = VolumeStar(V, C, d, 1-noise_disturbance, 1); % input set

end
192 changes: 0 additions & 192 deletions code/nnv/examples/NN/medmnist/verify_medmnist3d_extraInfo.m

This file was deleted.

0 comments on commit f05133b

Please sign in to comment.