Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad inference result #23

Closed
amiltonwong opened this issue Mar 3, 2018 · 3 comments
Closed

bad inference result #23

amiltonwong opened this issue Mar 3, 2018 · 3 comments

Comments

@amiltonwong
Copy link

Hi, @hellochick ,

I have performed the inference step after downloading the weight ckpt files you provided :
python inference.py --img-path=./input/indoor_2.jpg --dataset cityscapes.

However, the result I got is very different to yours. (result link)

Would you suggest me how to solve this issue?

THANKS!

@hellochick
Copy link
Owner

Hey @amiltonwong, if you want to inference on indoor photos, please set --dataset ade20k and download the correct pre-trained model from here

@amiltonwong
Copy link
Author

Thanks a lot, @hellochick .
I solved it :)

@zl535320706
Copy link

zl535320706 commented Oct 12, 2018

hi, @hellochick I also use your model files and you provided:
python inference.py --img-path=./input/indoor_2.jpg --dataset ade20k.
and I can't get the same results as yours. And my system info is as below
python 2.7
tensorflow 1.2.0
Well, I can run inference.py, and output prediction with some messages as follow:

/home/username/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
/home/username/anaconda3/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
successful load img: ./input/indoor_2.jpg
2018-10-12 22:16:40.150088: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX
2018-10-12 22:16:40.425267: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Found device 0 with properties:
name: Tesla K40c major: 3 minor: 5 memoryClockRate(GHz): 0.745
pciBusID: 0000:83:00.0
totalMemory: 11.17GiB freeMemory: 11.10GiB
2018-10-12 22:16:40.425349: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: Tesla K40c, pci bus id: 0000:83:00.0, compute capability: 3.5)
No checkpoint file found.

@amiltonwong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants