Skip to content

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

@JovinLim

Description

@JovinLim
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions