kPsarakis / Image-Forgery-Detection-CNN

Image forgery detection using convolutional neural networks. Group 10's final project for TU Delft's course CS4180 Deep Learning 2019.
149 stars 40 forks source link

Problem with feature_extraction with the NC2016 dataset #17

Closed MaryCer closed 2 years ago

MaryCer commented 2 years ago

I ran the script with the CASIA2 dataset and it went well, but with the NC2016 dataset and the pretrained model it shows this kind of error.

After changing the code for the NC2016 dataset: input_path = '../data/NC2016/' output_filename = 'NC2016_WithRot_LR001_b128_nodrop.csv' create_feature_vectors_nc(model, input_path, output_filename)

I keep encountering this kind of errors: DtypeWarning: Columns (3,6,10,15,16,18,19) have mixed types.Specify dtype option on import or set low_memory=False. create_feature_vectors_nc(model, input_path, output_filename)

ValueError: At least one stride in the given numpy array is negative, and tensors with negative strides are not currently supported. (You can probably work around this by making a copy of your array with array.copy().)