Skip to content

No module named 'datasets.PhraseCutDataset' #4

@awei-97

Description

@awei-97

"Hello, when I was debugging the generate_masks/cutler_sam_masks.py file,

an error occurred with the message: No module named 'datasets.PhraseCutDataset'

I noticed that you indeed did not provide this file, could you please complete it?

Additionally, I'm not quite sure what the purpose of this PhraseCutDataset file is. The default path defined in this class is also quite strange. For example, in the following code:

class PhraseCut_Dataset(Dataset):
    def __init__(self, split='val', word_length=17, input_size=416, 
                 image_dir=f'../datasets/PhraseCutDataset/data/VGPhraseCut_v0/images/', 
                 unseen_mode=False, 
                 seen_mode=False, 
                 mask_gen_mode=False):

What exactly is the image_dir path in this code? Could you please explain it?"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions