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

您好,请问咱们这个测试脚本是那个文件呢? 谢谢! #8

Open
daozhi0921 opened this issue Jul 6, 2022 · 4 comments

Comments

@daozhi0921
Copy link

No description provided.

@daozhi0921
Copy link
Author

我执行指令: python main.py --load_model=True --online_testing=True
报错:ValueError: could not convert string to float: '你好'

报错行:
inp = inp.split()
y = int(inp[0])

是我指令执行有问题吗?

@guotong1988
Copy link
Owner

image

预测结果文件

@daozhi0921
Copy link
Author

我现在不是找不到结果文件, 现在的问题是, 进行预测的时候, 报上述错误, 😂

@daozhi0921
Copy link
Author

因为目前main.py 正在训练, 所以我把main.py 复制到predict.py 然后把训练的那部分args 给去掉了, 只留下了 args.online_testing, 之后执行指令: python predict.py --load_model=True --online_testing=True 就会报错: ValueError: could not convert string to float, 其中报错行为:y = int(inp[0]) 但是如果我把y修改为int 类型, 虽然不报错, 但是original 与 transfer 结果是一个 “。”, 也就是空, 我不太明白哪里出现问题了, 麻烦您解答一下, 谢谢~

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