nicolafan / image-captioning-cnn-rnn

Tensorflow/Keras implementation of an image captioning neural network, using CNN and RNN
MIT License
6 stars 1 forks source link

Remove cartesian axes from prediction plot #10

Closed nicolafan closed 1 year ago

nicolafan commented 1 year ago

The prediction plot shows the cartesian axes over all the images (except for the last one). Remove the axes (file is src/models/predict_model.py).

vijaybirju commented 1 year ago

should we have to remove axs from every prediction plot? Means Just remove the caption right?

nicolafan commented 1 year ago

Hi! No, with reference to this plot of the predictions:

sample_val_predictions.png

all pictures except for the last one have the numbered axes visible. Instead, every figure should be plotted as the last one: image + caption without axes.

# Show the plot
plt.axis("off")
plt.show()

I did this in the main of the prediction code, but this works by removing the axes only of the last picture. Probably, the axes have to be put off for all the subplots.

vijaybirju commented 1 year ago

I Fixed It