You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
After you use model.predict(img), you will get logits. You have to use argmax and then you will get the label. Now you have the labels, you can directly plot them plt.imshow(labels)
In the page itself, the author has given following code, use it:
import numpy as np
from PIL import Image
from matplotlib import pyplot as plt
from model import Deeplabv3
Generates labels using most basic setup. Supports various image sizes. Returns image labels in same format
as original image. Normalization matches MobileNetV2
After using predict(), I get labels now, but how can I get the labeled images? Sorry, I'm new in this, thanks!
The text was updated successfully, but these errors were encountered: