Tutorial loading Deepforest#

[ ]:
!pip install deepforest
[ ]:
from deepforest import main
from deepforest import get_data
import os
import matplotlib.pyplot as plt

# model = main.deepforest()
# model.use_release()

# img = model.predict_image(path="../tests/data/OSBS_029_0.png",return_plot=True)
# #predict_image returns plot in BlueGreenRed (opencv style), but matplotlib likes RedGreenBlue, switch the channel order.
# plt.imshow(img[:,:,::-1])