Hi,
I created a simple test script using the predict function you have provided.
When I load the pre-trained model and run on a sample cityscape image, I get completely garbage segmentation mask.
I looked at the output prediction tensor here:
images = images.to('cuda')
# Make predictions!
model.eval()
with torch.no_grad():
predictions = model(images)
The predictions for group of nearby pixels(for e.g. from section of road) appear completely random for a typical cityscape image.
Another questions: is the output tensor supposed to be a normalized prob vector? I see negative values in this tensor:
Hi, I created a simple test script using the predict function you have provided. When I load the pre-trained model and run on a sample cityscape image, I get completely garbage segmentation mask.
I looked at the output prediction tensor here:
The predictions for group of nearby pixels(for e.g. from section of road) appear completely random for a typical cityscape image. Another questions: is the output tensor supposed to be a normalized prob vector? I see negative values in this tensor:
I'm using :
Following is my complete test script: