DBNet.pytorch icon indicating copy to clipboard operation
DBNet.pytorch copied to clipboard

predict.py

Open xiaomingxige opened this issue 2 years ago • 4 comments

125行save_resut应该为save_result

xiaomingxige avatar May 07 '22 07:05 xiaomingxige

Hey ! , yeah I had the same observation I think you can make a pull request while waiting for its validation.

ChihabEddine98 avatar May 09 '22 07:05 ChihabEddine98

do you know why there is a error while running this file? Traceback (most recent call last): File "/home/swap/miniconda3/envs/DB-master/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3361, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in <cell line: 1> runfile('/home/swap/Downloads/DBNet.pytorch-master/tools/predict.py', wdir='/home/swap/Downloads/DBNet.pytorch-master/tools') File "/home/swap/.local/share/JetBrains/Toolbox/apps/PyCharm-C/ch-0/202.7660.27/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script File "/home/swap/.local/share/JetBrains/Toolbox/apps/PyCharm-C/ch-0/202.7660.27/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/home/swap/Downloads/DBNet.pytorch-master/tools/predict.py", line 142, in for img_path in tqdm(get_file_list(args.input_folder, p_postfix=['.jpg'])): File "/home/swap/Downloads/DBNet.pytorch-master/utils/util.py", line 23, in get_file_list assert os.path.exists(folder_path) and os.path.isdir(folder_path) AssertionError

aswa123 avatar May 19 '22 03:05 aswa123

@aswa123 Hey , did you make a folder named input in which your input images have ".JPG" extension ? that occurred for me when I tried to work with other format files that you can easily change in line 142

ChihabEddine98 avatar May 19 '22 07:05 ChihabEddine98