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

TypeError: 'float' object is not subscriptable #25

Open
Dawnlnz opened this issue Mar 1, 2019 · 4 comments
Open

TypeError: 'float' object is not subscriptable #25

Dawnlnz opened this issue Mar 1, 2019 · 4 comments

Comments

@Dawnlnz
Copy link

Dawnlnz commented Mar 1, 2019

File "E:\DeepLearning\demo\DFace\dface\train_net\train.py", line 87, in train_pnet
show1 = accuracy.data.tolist()[0]
TypeError: 'float' object is not subscriptable

@RickyZ92
Copy link

try
show1=str(accuracy.data.tolist())

@Dawnlnz
Copy link
Author

Dawnlnz commented Mar 12, 2019 via email

@RickyZ92
Copy link

你的11行的是只有特征的文件 还有一个带4个参数的文件 把两个文件合合并在一起就行了。
我觉得作者在landmark部分实际用的是这个 (因为我之前训练过这个模型,从用法上来看比较像 但我自己没有试 不过我也比较蒙 因为这个数据集是lfw的。。并不是celeba的。。。)
如果你需要合成后的celeba文件 我可以直接给你

@Dawnlnz
Copy link
Author

Dawnlnz commented Mar 12, 2019 via email

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

2 participants