We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28b927c commit 258f3b5Copy full SHA for 258f3b5
DeepSlice/neural_network/neural_network.py
@@ -170,7 +170,7 @@ def predictions_util(
170
predictions = np.mean([predictions, secondary_predictions], axis=0)
171
model.load_weights(primary_weights)
172
filenames = image_generator.filenames
173
- filenames = [i.split("/")[-1] for i in filenames]
+ filenames = [os.path.basename(i) for i in filenames]
174
predictions_df = pd.DataFrame(
175
{
176
"Filenames": filenames,
0 commit comments