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

Description of issues and fixes when following Data Preparation and Training & Inference steps #6

Open
JovinLim opened this issue Aug 9, 2024 · 0 comments

Comments

@JovinLim
Copy link

JovinLim commented Aug 9, 2024

  1. 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

  2. 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.

  1. In cad_recognition/train.py, the "keys" of the collate function (line 126) should be defined as "data_list[0].keys()" instead of "data_list[0].keys". The original definition assigns a method to the variable "keys" and causes an error when enumerating the train_loader.

With the above fix in step 3, the training ran without a hitch for me while following the introductory steps.

@JovinLim JovinLim changed the title Description of issues and potential fixes Description of issues and fixes when following Data Preparation and Training & Inference steps Aug 9, 2024
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