microsoft / yolat-vectorgraphicsrecognition Goto Github PK
View Code? Open in Web Editor NEWSource Code of NeurIPS21 and T-PAMI24 paper: Recognizing Vector Graphics without Rasterization
License: MIT License
Source Code of NeurIPS21 and T-PAMI24 paper: Recognizing Vector Graphics without Rasterization
License: MIT License
Dr.Jiang,
Sorry to bother you.
While performing the diagrams dataset replication, I found that the 'outlets' are not detectable at all.
And the results are much different from the results obtained in your paper, my results are as follows:
[email protected]: 0.9275 [email protected]: 0.8790 MAP@ALL: 0.8392
While executing build_graph_bbox_diagram.py, I found that the generated bbox divides two 'outlets' in the same bbox, I modified the parameter expand_length=(15 / width, 30 / height), the generated bbox was able to differentiate the two 'outlets' but it was still recognized as none in the training results.
I find this phenomenon very strange and hope to get your answer.
Thanks a lot and looking forward to your response soon.
Best regards
geruiLin
Dr.Jiang,
Sorry to bother you.
I run the command "CUDA_VISIBLE_DEVICES=0 python -u cad_recognition/test.py --data_dir data/FloorPlansGraph5_iter --pretrained_model log/run182_2_best.pth" with codes about "opt.arch" and "opt.graph" being commented out.
BUT before and then, I still got the errors:
"size mismatch for cls_net.fusion_block.0.weight: copying a param with shape torch.Size([1024, 128]) from checkpoint, the shape in current model is torch.Size([1024, 448]).
size mismatch for cls_net.fusion_block_super.0.weight: copying a param with shape torch.Size([1024, 128]) from checkpoint, the shape in current model is torch.Size([1024, 448]).
size mismatch for prediction_cls.0.0.weight: copying a param with shape torch.Size([512, 2304]) from checkpoint, the shape in current model is torch.Size([512, 2944])."
It really confusing since the model was saved based on "def save_checkpoint()" while it did not match during loading the model.
Would you like to resolve this issue?
Thanks a lot and looking forward to your response soon.
Best regards,
VivianBB.
thop, h5py and fvcore should be included in some requirements.txt somewhere or in the deepgcn_env_install.sh file as these were required to prepare the Floorplan dataset
any line with np.bool in the build_graph_bbox.py file should be changed to simply bool. Error is:
"AttributeError: module 'numpy' has no attribute 'bool'.
np.bool
was a deprecated alias for the builtin bool
. To avoid this error in existing code, use bool
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_
here."
With the first two fixes, the data preparation can be done without errors for me while following the introductory steps.
With the above fix in step 3, the training ran without a hitch for me while following the introductory steps.
Dr.Jiang,
Sorry to bother you.I am a novice and I am not very familiar with how to use the trained model for new predictions. Could you please explain to me how to do that? I have followed the operation steps on Git to train the model and obtained the file "run182_2_best.pth". So, how can I use this training result to predict new files? Thank you.
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.