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

密度图生成问题 #18

Open
zhangshaole opened this issue Aug 5, 2022 · 0 comments
Open

密度图生成问题 #18

zhangshaole opened this issue Aug 5, 2022 · 0 comments

Comments

@zhangshaole
Copy link

大佬您好,密度图densityMap.py生成shanghaitechA和QNRF都存在问题,不知道您那边跑通的程序是这个吗?
Traceback (most recent call last):
File "/root/anaconda3/lib/python3.9/site-packages/scipy/io/matlab/mio.py", line 39, in _open_file
return open(file_like, mode), True
IsADirectoryError: [Errno 21] Is a directory: '/opt/data/private/card1/ZSL/CCTrans/data/shanghaitech/part_A_final'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/data/private/card1/ZSL/CCTrans/vis.py", line 133, in
pred_map, gt_dmap, gt_count = vis(args)
File "/opt/data/private/card1/ZSL/CCTrans/vis.py", line 47, in vis
mat = io.loadmat(image_path.replace('.jpg', '.mat').replace('images', 'ground_truth').replace("IMG", "GT_IMG"))
File "/root/anaconda3/lib/python3.9/site-packages/scipy/io/matlab/mio.py", line 224, in loadmat
with _open_file_context(file_name, appendmat) as f:
File "/root/anaconda3/lib/python3.9/contextlib.py", line 119, in enter
return next(self.gen)
File "/root/anaconda3/lib/python3.9/site-packages/scipy/io/matlab/mio.py", line 17, in _open_file_context
f, opened = _open_file(file_like, appendmat, mode)
File "/root/anaconda3/lib/python3.9/site-packages/scipy/io/matlab/mio.py", line 45, in _open_file
return open(file_like, mode), True
FileNotFoundError: [Errno 2] No such file or directory: '/opt/data/private/card1/ZSL/CCTrans/data/shanghaitech/part_A_final.mat'

image

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

1 participant