runnanchen / CLIP2Scene

Other
157 stars 6 forks source link

No such file or directory: './list_keyframes_train.json' #6

Open gbliao opened 1 year ago

gbliao commented 1 year ago
        if phase == "train":
            with open('./list_keyframes_train.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_train.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()
        if phase == "val":
            with open('./list_keyframes_val.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_val.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()
        if phase == "test":
            with open('./list_keyframes_test.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_test.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()

        if phase == "parametrizing":
            with open('./list_keyframes_parametrizing.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_parametrizing.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()
        elif phase == "verifying":
            with open('./list_keyframes_verifying.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_verifying.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()

Can you help me obtain the list_keyframes_train.json file? Thanks!

runnanchen commented 1 year ago
        if phase == "train":
            with open('./list_keyframes_train.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_train.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()
        if phase == "val":
            with open('./list_keyframes_val.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_val.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()
        if phase == "test":
            with open('./list_keyframes_test.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_test.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()

        if phase == "parametrizing":
            with open('./list_keyframes_parametrizing.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_parametrizing.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()
        elif phase == "verifying":
            with open('./list_keyframes_verifying.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_verifying.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()

Can you help me obtain the list_keyframes_train.json file? Thanks!

Please refer to the code "CLIP2Scene/pretrain/dataloader_nuscenes.py" in loading the nuScenes dataset. We will update the code soon. Thanks!

gbliao commented 1 year ago

However, we finetuned the pretrained SPVCNN with 1% of the labeled data and only obtained 27.1 mIoU, which differs significantly from the results reported in the original paper.

Could your help me solve this problem?

jijun-cheng commented 1 year ago
        if phase == "train":
            with open('./list_keyframes_train.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_train.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()
        if phase == "val":
            with open('./list_keyframes_val.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_val.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()
        if phase == "test":
            with open('./list_keyframes_test.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_test.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()

        if phase == "parametrizing":
            with open('./list_keyframes_parametrizing.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_parametrizing.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()
        elif phase == "verifying":
            with open('./list_keyframes_verifying.json', 'r') as f:
                self.list_keyframes = json.load(f)

            f1 = open('./save_dict_verifying.json', 'r')
            content = f1.read()
            self.frames_corrs_info = json.loads(content)
            f1.close()

Can you help me obtain the list_keyframes_train.json file? Thanks!

Hi! @runnanchen @gbliao
I am also facing this same problem. Could you please tell me how to get list_keyframes_train.json and save_dict_train.json? Thanks!

Liuliuliuyikou commented 1 year ago

Same question, has anyone got it?

limengran98 commented 5 months ago

I solved this by replacing the file linked below:

https://github.com/valeoai/SLidR/blob/main/downstream/dataloader_nuscenes.py