chenjun2hao / DDRNet.pytorch

This is the unofficial code of Deep Dual-resolution Networks for Real-time and Accurate Semantic Segmentation of Road Scenes. which achieve state-of-the-art trade-off between accuracy and speed on cityscapes and camvid, without using inference acceleration and extra data
Other
157 stars 42 forks source link

Unable to reproduce the inference on my images from pre-trained models #8

Closed Gourav2K closed 3 years ago

Gourav2K commented 3 years ago

I am trying to reproduce the model results on my own dataset from the pre-trained models on cityscapes but tools/eval.py is throwing errors each time I am trying and fixing the details. Can you just give me a gist of steps that I would need to take in order to get inference on my images from the pretrained model of ddrnet23_slim?

chenjun2hao commented 3 years ago

@Gourav2K , you can debug with pycharm. or you can use test.py for test on your own dataset.

Tetsujinfr commented 3 years ago

hi

test.py does not seems to be much related to an inference file. eval.py is closer in my view but maybe I am missing something here? btw what is demo.py about? it does not seems to be an inference demo. thanks

Gourav2K commented 3 years ago

Exactly, I am facing the exact same issues. test.py contains commented-out statements and eval.py does not seem to generate inferences.