Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hi,about token file problem #1

Closed
yangkunhub opened this issue Apr 29, 2022 · 10 comments
Closed

hi,about token file problem #1

yangkunhub opened this issue Apr 29, 2022 · 10 comments

Comments

@yangkunhub
Copy link

ERROR:root:No token file found. Also make sure that a [prod] section with a 'token = value' assignment exists.
I have a question for you,The error is to obtain token by CUDA_VISIBLE_DEVICES=0 python pascalvoc_crop.py,The generated token file is in the trained directory

@yangkunhub
Copy link
Author

run CUDA_VISIBLE_DEVICES=0 python pascalvoc_generate_pseudo_label.py with dataset.train_batch_size=8 Tips are as follows:
e403a19ec5cf605d2cc3f60f5ebcdc9

@yangkunhub
Copy link
Author

the execution result about CUDA_VISIBLE_DEVICES=0 python lip_crop.py 。 The PASCAL dataset I used, why is the train/cls_feat/cls_feat_pascalvoc folder empty 。 image

@yangkunhub
Copy link
Author

yangkunhub commented Apr 29, 2022

你好我看了你的论文 你的代码我也去尝试复现了 但是我不知道为什么执行 CUDA_VISIBLE_DEVICES=0 python pascalvoc_crop.py这个命令应该是利用滑动窗口生产裁剪后的图片,但是这些生成后的图片是存放在哪个目录下呢?然后生成train/cls_feat/cls_feat_pascalvoc这个文件下也是为空这个里面应该放的应该是token 文件把 。再执行CUDA_VISIBLE_DEVICES=0 python pascalvoc _generate_pseudo_label.py with dataset.train_batch_size=2 model.decoder.n_things=16 生成伪标签然后就报错了 。报错如下
image
这个错误应该是找不到cls-feat文件 。谢谢作者

@yangkunhub
Copy link
Author

希望能得到作者指点

@yangkunhub
Copy link
Author

yangkunhub commented Apr 30, 2022

球球了 这篇论文对我很有帮助, 我想问运行了pascalvoc_crop.py,提示是成功运行了如图
1651288596(1)
但是cls-feat-Pascalvoc 文件夹里的文件是空的,如果这个文件为空下一步在运行pascalvoc _generate_pseudo_label.py 就会提示找不到cls-feat-Pascalvoc文件夹里的文件 就会运行失败 如图
image
。 我用的是Pascalvoc数据集因为其它数据集太大了我就没试,因为我只用的voc数据集所以root/weight/trained里只放了pascalvoc_decoder.pt。root/weight/dino里都正常放的dino_deitsmall8_pretrain.pth这个文件

@zyy-cn
Copy link
Collaborator

zyy-cn commented May 20, 2022

@yangkunhub hi,您好,抱歉回复迟了。感谢对我们工作的关注。我这边没有复现出这个问题,请问您运行的环境是什么?目录是否具有写权限?

为了排查问题,建议测试如下代码是否能在'train/cls_feat/cls_feat_pascalvoc'文件夹下正常输出'output':

import os
import pickle
import numpy as np

feature_bank_dir = os.path.join(f'train/cls_feat/cls_feat_pascalvoc')
os.makedirs(feature_bank_dir, exist_ok=True)
feat_save_path = os.path.join(feature_bank_dir, 'output')
cls_feat = np.random.random((5, 384))
dictfile = open(feat_save_path, 'wb')
pickle.dump(cls_feat, dictfile)
dictfile.close()

@yangkunhub
Copy link
Author

好啦 作者太谢谢你回复我了 问题解决了 因为我在3090上跑的 torch版本有点低了 卸载又换了torch版本 就出现了生成的文件啦

@tanveer6715
Copy link

ERROR:root:No token file found. Also make sure that a [prod] section with a 'token = value' assignment exists. I have a question for you,The error is to obtain token by CUDA_VISIBLE_DEVICES=0 python pascalvoc_crop.py,The generated token file is in the trained directory

Hi I am facing same problem.. My token files and pseudo_label are generated but when I start training on cityscapes dataset it showed me this error. Your help and suggestion will be appreciated.

@zyy-cn
Copy link
Collaborator

zyy-cn commented Aug 23, 2022

ERROR:root:No token file found. Also make sure that a [prod] section with a 'token = value' assignment exists. I have a question for you,The error is to obtain token by CUDA_VISIBLE_DEVICES=0 python pascalvoc_crop.py,The generated token file is in the trained directory

Hi I am facing same problem.. My token files and pseudo_label are generated but when I start training on cityscapes dataset it showed me this error. Your help and suggestion will be appreciated.

Hi @tanveer6715 , I didn't reproduce this problem on my end using the environment described in the README.md file. Could you please provide more detail information about this problem if you trained under the same environment?

@tanveer6715
Copy link

ERROR:root:No token file found. Also make sure that a [prod] section with a 'token = value' assignment exists. I have a question for you,The error is to obtain token by CUDA_VISIBLE_DEVICES=0 python pascalvoc_crop.py,The generated token file is in the trained directory

Hi I am facing same problem.. My token files and pseudo_label are generated but when I start training on cityscapes dataset it showed me this error. Your help and suggestion will be appreciated.

Hi @tanveer6715 , I didn't reproduce this problem on my end using the environment described in the README.md file. Could you please provide more detail information about this problem if you trained under the same environment?

Thanks for your kind response. Actually I am trying it on cityscapes dataset and the training starts well. It seems to be a kind of warning message when I start the training.

@zyy-cn zyy-cn closed this as completed Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants