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().)
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().)