Surrey-UP-Lab / RegionSpot

Recognize Any Regions

Home Page:https://arxiv.org/abs/2311.01373

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

询问offline_token

inhaowu opened this issue · comments

在使用自己的数据集进行训练时,我发现需要一个offline_token:
#read pth
pth_file = os.path.join(self.mask_tokens_dir, os.path.join(dataset_name, str(image_id)+'.pth'))
offline_token = torch.load(pth_file)
请问是需要提前在SAM中得到每个物体的分割embeddings吗?

Yes, we pre-extract the embedding of each object in the annotations during the training stage to save time.

Yes, we pre-extract the embedding of each object in the annotations during the training stage to save time.

fine, thanks!

Yes, we pre-extract the embedding of each object in the annotations during the training stage to save time.

请问有没有相关的提取embeddings的代码呢?

@inhaowu how to use your own dataset? Thank you!

Yes, we pre-extract the embedding of each object in the annotations during the training stage to save time.

请问有没有相关的提取embeddings的代码呢?

The release of the token extractor code will happen later, but you can currently refer to the provided inference code for embedding extraction. This process is straightforward and involves simple inference steps.

@inhaowu how to use your own dataset? Thank you!

按照它的要求改数据集,加入比如'mask_tokens'那些,需要用SAM离线得到。不过我训练的时候没看到有任何.pth文件保存下来,有点奇怪。

@inhaowu how to use your own dataset? Thank you!

按照它的要求改数据集,加入比如'mask_tokens'那些,需要用SAM离线得到。不过我训练的时候没看到有任何.pth文件保存下来,有点奇怪。

We typically save only the last checkpoint by default. However, you can save checkpoints from any iteration by setting cfg.SOLVER.CHECKPOINT_PERIOD.

谢谢您的解答!请问可以边训练边测试吗?

------------------ 原始邮件 ------------------ From: Haosen Yang @.> 发送时间: 12/18/2023, 17:02 To: Surrey-UPLab/Recognize-Any-Regions @.> 抄送: Inhao_Wu @.>, Mention @.> Subject: Re: [Surrey-UPLab/Recognize-Any-Regions] 询问offline_token (Issue #9) @inhaowu how to use your own dataset? Thank you! 按照它的要求改数据集,加入比如'mask_tokens'那些,需要用SAM离线得到。不过我训练的时候没看到有任何.pth文件保存下来,有点奇怪。 We typically save only the last checkpoint by default. However, you can save checkpoints from any iteration by setting cfg.SOLVER.CHECKPOINT_PERIOD. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

This codebase are not support this now.

那请问怎么保证能得到best.pth呢?

------------------ 原始邮件 ------------------ From: Haosen Yang @.> 发送时间: 12/18/2023, 17:40 To: Surrey-UPLab/Recognize-Any-Regions @.> 抄送: Inhao_Wu @.>, Mention @.> Subject: Re: [Surrey-UPLab/Recognize-Any-Regions] 询问offline_token (Issue #9) 谢谢您的解答!请问可以边训练边测试吗? … ------------------ 原始邮件 ------------------ From: Haosen Yang @.> 发送时间: 12/18/2023, 17:02 To: Surrey-UPLab/Recognize-Any-Regions @.> 抄送: Inhao_Wu @.>, Mention @.> Subject: Re: [Surrey-UPLab/Recognize-Any-Regions] 询问offline_token (Issue #9) @inhaowu how to use your own dataset? Thank you! 按照它的要求改数据集,加入比如'mask_tokens'那些,需要用SAM离线得到。不过我训练的时候没看到有任何.pth文件保存下来,有点奇怪。 We typically save only the last checkpoint by default. However, you can save checkpoints from any iteration by setting cfg.SOLVER.CHECKPOINT_PERIOD. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.> This codebase are not support this now. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>

We utilize the last checkpoint directly, without making a specific selection.