Skip to content

Commit 6c0d15a

Browse files
committed
fix import path
1 parent 7f961d9 commit 6c0d15a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def multiproc_embed_watermark(params, order_of_execution):
5656

5757
def main():
5858
# Get N_IMAGES_LIMIT random images
59-
images = import_images(IMG_FOLDER_PATH + 'to-watermark/',N_IMAGES_LIMIT,True)
59+
images = import_images('images/test/original/',N_IMAGES_LIMIT,True)
6060

6161
# Read watermark
6262
watermark = np.load("failedfouriertransform.npy").reshape((MARK_SIZE, MARK_SIZE))

roc_failedfouriertransform.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def print_models():
185185
print((alpha + '_' + level + '_' + subband).ljust(10), tpr, fpr, threshold)
186186

187187
def threshold_computation(continue_training):
188-
images = import_images(IMG_FOLDER_PATH + 'to-watermark/', N_IMAGES_LIMIT, True)
188+
images = import_images('images/test/original/', N_IMAGES_LIMIT, True)
189189
watermark = np.load("failedfouriertransform.npy").reshape((MARK_SIZE, MARK_SIZE))
190190
attacks = []
191191
# 2. In a loop, attack one by one these images (with random attacks or the strategy you prefer)

0 commit comments

Comments
 (0)