lck1201 / win_det_heatmaps Goto Github PK
View Code? Open in Web Editor NEWWindow Detection in Facade Using Heatmaps Fushion
License: MIT License
Window Detection in Facade Using Heatmaps Fushion
License: MIT License
Hello, when I run the training script and use the training data you provided, the script crashes at 118 epochs with the error message of "Assertion error: (1, index error('too many indices for array: array is 1-dimensional but 2 were indexed') as seen below. Can you please tell me what is the cause of this and how it can be fixed?
Thank you
I see the page includes a description on carrying out perspective transformation of the facade/window but I can't find that in the code. Can you please let us know where this could be located?
Thanks
Hi, I am not really sure how I should run your project. I tried downloading the resnet file but I am unable to extract it, and not really sure how to use it. Could I have a more detailed explenation of how to train with the resnet option? how should I treat the downloaded file and which are the paths that I need to specify when I try to run it?
Thank you for this great project
I see that you have this item on the last Applications example. I tried to find the code for it but without any success. Is it possible for you to kindly point me towards it?
RuntimeError: Error(s) in loading state_dict for PoseNet_2branch:
Missing key(s) in state_dict: "backbone.conv1.weight", "backbone.bn1.weight", "backbone.bn1.bias", "backbone.bn1.running_mean", "backbone.bn1.running_var", "backbone.layer1.0.conv1.weight", "backbone.layer1.0.bn1.weight", "backbone.layer1.0.bn1.bias", "backbone.layer1.0.bn1.running_mean",
my command line was: python infer.py --cfg experiments/resnet/lr1e-3_x120-90-110_center_b2.yaml --model models/resnet18_model_latest.pth.tar --infer images So I am loading resnet18_model the configs from the .yaml file, and the model. Seems the definition or dictaionary does not contain those strings.
Ttrained models from BaiduYun(code: n0ev), seem not exists
Hello, I want to ask you a question. When I used the texst.py file for testing, the following error occurred
[WinError 3] The system cannot find the path specified. :'d\_valid_cache'
which is occurred in "win_det_heatmaps-master\common_pytorch\dataset\imdb.py", line 32, in cache_path
os.mkdir(cache_path)"
I would like to ask you how to solve this problem?
Thank you so much!
Hello, thank you for your work.
When I train my own dataset, the following errors are reported in the verification phase. Can you help me?
in valid
in eval
Param Tag_threshold 12.0
Param detection_threshold 0.2
Traceback (most recent call last):
File "/mnt/Code/win_det_heatmaps/common_pytorch/net_modules.py", line 152, in evalNet
rectify = test_config.rectify, winScoreThres = test_config.windowT)
File "/mnt/Code/win_det_heatmaps/common_pytorch/group/tag_group.py", line 266, in group_corners_on_tags
grouped = parser.parse(np.float32(dets), np.float32(tags), idx, ratio, rectify) # shape=(num_of_windows, 4, 4)
File "/mnt/Code/win_det_heatmaps/common_pytorch/group/tag_group.py", line 242, in parse
re = self.calc(det, tag, idx)
File "/mnt/Code/win_det_heatmaps/common_pytorch/group/tag_group.py", line 178, in calc
val_k = [c_pts[:, 2, np.newaxis] for c_pts in coords_in_patch_with_score_id]
File "/mnt/Code/win_det_heatmaps/common_pytorch/group/tag_group.py", line 178, in
val_k = [c_pts[:, 2, np.newaxis] for c_pts in coords_in_patch_with_score_id]
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train.py", line 158, in
main()
File "train.py", line 135, in main
config.train.patch_width, config.train.patch_height, final_output_path)
File "/mnt/Code/win_det_heatmaps/common_pytorch/net_modules.py", line 155, in evalNet
assert 0, (n_s, e, os.path.basename(imdb_list[n_s]['image']))
AssertionError: (0, IndexError('too many indices for array: array is 1-dimensional, but 2 were indexed'), 'result_toushi_2282_6_4.jpg')
Are the .tar model files good? I cannot untar them. They seem corrupted. Could you upload them without taring?
Hi, thanks for this project - it is a fantstic resource.
When downloading the dataset from here the zju_facade_jcst2020.rar
(md5 1d2f3fbfb913f6120698929547110c7f
) file behaves like a zip bomb on my system (ubuntu).
The 1Gb archive extracts to 750Gb+ folder structure containing a single file zju_facade_jcst2020/TRAIN/JSON/annotation/00000.json
. Is this intentional? Such a large json file seems problematic.
What size should the extracted dataset be?
Many thanks!
Hi I'm getting the error:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 13.61 GiB (GPU 0; 10.76 GiB total capacity; 4.73 Gib already allocated; 4.09 GiB free; 5.12 GiB reserved in total by PyTorch) If reserved memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
Batch Size 4 and 2080Ti
Hi! My GPU is unfortunately not by nvidia and so its not possible to compile torch with cuda. Is there any alternative code for normal gpus?
thx in advance
Hello, your work works quite fine in my ubuntu system but I wonder if it can be run on my windows system? Thank you, you did a great job.
Hi
Could you share on the config yaml file required to perform the train/test/infer? thank you
Hello, your work is great! It helps me a lot!
But when I run
python infer.py --cfg experiments/resnet/lr1e-3_x120-90-110_center_b2.yaml --model model/resnet18_model_latest.pth.tar --infer ./image
It raise an Error like that
AssertionError: (0, IndexError('too many indices for array: array is 1-dimensional, but 2 were indexed'), '0914D92ED9B1A4ECD498DD1E89BA43B1(1).jpg')
which happens in "\win_det_heatmaps\common_pytorch\net_modules.py" file of line 215.
By the way ,0914D92ED9B1A4ECD498DD1E89BA43B1(1).jpg is contained in the "image" directory.
Thanks a lot!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.