Skip to content

No such file or directory: '../../bionoi_output/residue_type/control/fold_1' #5

Description

@mainguyenanhvu

When I run python homology_reduced_cnn_cv_resnet18.py -op control_vs_nucleotide -root_dir ../../bionoi_output/residue_type/ -batch_size 32 -result_file_suffix 1st after finishing running Bionoi by executing /bionoi/img_gen.sh to transform .mol2 files to images, it threw an error:

Traceback (most recent call last):
  File "homology_reduced_cnn_cv_resnet18.py", line 766, in <module>
    num_workers=4)
  File "homology_reduced_cnn_cv_resnet18.py", line 464, in gen_loaders
    mean, std = dataset_statistics(root_dir, op)
  File "homology_reduced_cnn_cv_resnet18.py", line 486, in dataset_statistics
    dataset = BionoiDatasetCV(op=op, root_dir=data_dir, folds=[1,2,3,4,5], transform=transform)
  File "homology_reduced_cnn_cv_resnet18.py", line 376, in __init__
    self.list_of_files_list.append([os.path.join(folder_dir, name) for name in os.listdir(folder_dir) if os.path.isfile(os.path.join(folder_dir, name))])
FileNotFoundError: [Errno 2] No such file or directory: '../../bionoi_output/residue_type/control/fold_1'

Please help me to solve it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions