Commit 3e146496 authored by chenych's avatar chenych
Browse files

Modify ROOT_PATH in gen_data.py

parent a2cb7e19
......@@ -213,7 +213,9 @@ parser.add_argument('--mode', default='all',
opt = parser.parse_args()
if __name__ == "__main__":
ROOT_PATH = './'
ROOT_PATH = os.getcwd()
if not os.path.exists(ROOT_PATH+"/labels"):
ROOT_PATH = os.path.join(ROOT_PATH, "datasets")
mode_type = opt.mode
if mode_type == 'all':
deal_list = ['train', 'val']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment