{"action":"created","issue":{"url":"https://api.github.com/repos/MarvinTeichmann/KittiSeg/issues/57","repository_url":"https://api.github.com/repos/MarvinTeichmann/KittiSeg","labels_url":"https://api.github.com/repos/MarvinTeichmann/KittiSeg/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/MarvinTeichmann/KittiSeg/issues/57/comments","events_url":"https://api.github.com/repos/MarvinTeichmann/KittiSeg/issues/57/events","html_url":"https://github.com/MarvinTeichmann/KittiSeg/issues/57","id":231551111,"node_id":"MDU6SXNzdWUyMzE1NTExMTE=","number":57,"title":"How to test my model","user":{"login":"lxy-94","id":19611222,"node_id":"MDQ6VXNlcjE5NjExMjIy","avatar_url":"https://avatars2.githubusercontent.com/u/19611222?v=4","gravatar_id":"","url":"https://api.github.com/users/lxy-94","html_url":"https://github.com/lxy-94","followers_url":"https://api.github.com/users/lxy-94/followers","following_url":"https://api.github.com/users/lxy-94/following{/other_user}","gists_url":"https://api.github.com/users/lxy-94/gists{/gist_id}","starred_url":"https://api.github.com/users/lxy-94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxy-94/subscriptions","organizations_url":"https://api.github.com/users/lxy-94/orgs","repos_url":"https://api.github.com/users/lxy-94/repos","events_url":"https://api.github.com/users/lxy-94/events{/privacy}","received_events_url":"https://api.github.com/users/lxy-94/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-26T07:46:41Z","updated_at":"2018-11-08T14:10:30Z","closed_at":null,"author_association":"NONE","body":"Hi, Marvin. Thank you for your KittiSeg and the tutorial. I have use it to train my data, but I don't know how to test the model which has been trained by my data. Thank you very much if you can reply me."},"comment":{"url":"https://api.github.com/repos/MarvinTeichmann/KittiSeg/issues/comments/437006094","html_url":"https://github.com/MarvinTeichmann/KittiSeg/issues/57#issuecomment-437006094","issue_url":"https://api.github.com/repos/MarvinTeichmann/KittiSeg/issues/57","id":437006094,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzAwNjA5NA==","user":{"login":"xxxy-931231","id":34996116,"node_id":"MDQ6VXNlcjM0OTk2MTE2","avatar_url":"https://avatars1.githubusercontent.com/u/34996116?v=4","gravatar_id":"","url":"https://api.github.com/users/xxxy-931231","html_url":"https://github.com/xxxy-931231","followers_url":"https://api.github.com/users/xxxy-931231/followers","following_url":"https://api.github.com/users/xxxy-931231/following{/other_user}","gists_url":"https://api.github.com/users/xxxy-931231/gists{/gist_id}","starred_url":"https://api.github.com/users/xxxy-931231/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xxxy-931231/subscriptions","organizations_url":"https://api.github.com/users/xxxy-931231/orgs","repos_url":"https://api.github.com/users/xxxy-931231/repos","events_url":"https://api.github.com/users/xxxy-931231/events{/privacy}","received_events_url":"https://api.github.com/users/xxxy-931231/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T14:10:30Z","updated_at":"2018-11-08T14:10:30Z","author_association":"NONE","body":"@1464256670 \r\nhi I also meet this questioun,I change like this (i am chinese and english not good)\r\nKittiSeg/evaluate.py\r\nin the main()\r\nthe importent thing is change the logdir to you own weight like \r\nlogdir = \"RUNS/project1/xieyan_KittiSeg_2018_11_08_12.48\"\r\nHere's my code\r\n`def main(_):\r\n    utils.set_gpus_to_use()\r\n\r\n    try:\r\n        import tensorvision.train\r\n        import tensorflow_fcn.utils\r\n    except ImportError:\r\n        logging.error(\"Could not import the submodules.\")\r\n        logging.error(\"Please execute:\"\r\n                      \"'git submodule update --init --recursive'\")\r\n        exit(1)\r\n\r\n    with open(tf.app.flags.FLAGS.hypes, 'r') as f:\r\n        logging.info(\"f: %s\", f)\r\n        hypes = json.load(f)\r\n    utils.load_plugins()\r\n\r\n    if 'TV_DIR_RUNS' in os.environ:\r\n        runs_dir = os.path.join(os.environ['TV_DIR_RUNS'],\r\n                                'KittiSeg')\r\n    else:\r\n        runs_dir = 'RUNS'\r\n\r\n    utils.set_dirs(hypes, tf.app.flags.FLAGS.hypes)\r\n    \r\n    utils._add_paths_to_sys(hypes)\r\n\r\n    train.maybe_download_and_extract(hypes)\r\n    #runs_dir = RUNS\r\n    #maybe_download_and_extract(runs_dir)\r\n    logging.info(\"Evaluating on Validation data.\")\r\n    logdir = os.path.join(runs_dir, FLAGS.RUN)\r\n    print(\"#####################\")\r\n    print(logdir)\r\n    print(\"#########change the path of logdir to my weight###############\")\r\n    logdir = \"RUNS/project1/xieyan_KittiSeg_2018_11_08_12.48\"\r\n    # logging.info(\"Output images will be saved to {}\".format)\r\n    ana.do_analyze(logdir)\r\n\r\n    logging.info(\"Creating output on test data.\")\r\n    kitti_test.do_inference(logdir)\r\n\r\n    logging.info(\"Analysis for pretrained model complete.\")\r\n    logging.info(\"For evaluating your own models I recommend using:\"\r\n                 \"`tv-analyze --logdir /path/to/run`.\")\r\n    logging.info(\"tv-analysis has a much cleaner interface.\")`"}}
{"actor":{"display_login":"xxxy-931231"}}