-
Notifications
You must be signed in to change notification settings - Fork 689
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
Demo code #124
Comments
Hi Yao, I am trying to do the same but the code is quite dense and I have made some progress but it would help if you already have something working. If you are still working on this, would you like to collaborate and creating some demo code, which we can then submit as a PR? |
Hi @yaoliUoA @jaintarun Were you able to write the inference code? |
I think it is better to have some demo code in this package to visualize the segmentation output from hrnet,too |
I think it is necessary too. |
import argparse from lib.config import config import torch mean=[0.485, 0.456, 0.406] class FaceSeg(): cudnn related settingupdate_config_demo(config)
def run(self,img0):
def get_palette(self, n): def convert_label(self, label, inverse=False): |
My friend, thank you for the code you provided, but there seems to be some problems with the format, could you please provide the correct format of the code |
你对齐下就可以了,我粘贴过来就变这样了 |
好的,谢谢兄弟,被你发现我是个中国人了哈哈 |
I think it is better to have some demo code in this package to visualize the segmentation output from hrnet.
The text was updated successfully, but these errors were encountered: