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

对于 Chap 6 的一些想法 #11

Closed
xinqiu opened this issue Jan 29, 2018 · 9 comments
Closed

对于 Chap 6 的一些想法 #11

xinqiu opened this issue Jan 29, 2018 · 9 comments

Comments

@xinqiu
Copy link
Contributor

xinqiu commented Jan 29, 2018

首先 文件夹里有两个重复的文件,建议删除一个。

README里的使用方法要是和实战指南中 6.1.8 使用相互一致或者类似更好。实战指南中的使用方式更为可靠。在实际使用中,--load-model-path=None 参数不能少,其实要是能够提供训练好的pth那就更好了,没用 GPU 来训练模型真是太痛苦了。

main.pytrain, test, val 函数中使用 tqdm,这样能看出进度> <,不然有一种死机的感觉。

另外,Chap 5 的 visdom 部分有些和预计结果不同,在 Chap 6 中,loss 图和 val_accuracy 都不能得到曲线,不知道是不是因为版本的原因。

chenyuntc added a commit that referenced this issue Jan 30, 2018
@chenyuntc
Copy link
Owner

visdom 确实有点问题,尤其是最近改版,以及由于部分js文件在国内被墙的原因。
建议试试:

pip install --upgrade visdom 

然后重启visdom服务
我试验了新版,暂时没发现问题

预训练的模型太大了 😅

@xinqiu
Copy link
Contributor Author

xinqiu commented Jan 30, 2018

2018-01-30 12 25 44

visdom==0.1.7 visdom 日志显示更新,但图并没有更新,请问这是因为墙的缘故么?

@chenyuntc
Copy link
Owner

能贴一下 visdom.server 的log看看吗?

@xinqiu
Copy link
Contributor Author

xinqiu commented Jan 30, 2018

2018-01-30 2 28 18

@chenyuntc
Copy link
Owner

😅 restart visdom.server and try?

@xinqiu
Copy link
Contributor Author

xinqiu commented Jan 30, 2018

尝试过多次> <,均无法更新,master和0.3的分支都试过了😂我再来试看看Python3,之前一直用的是Python2

@chenyuntc
Copy link
Owner

我刚clone下来, 在ipython2 下运行

%run main.py train --data-root=./data/train --use-gpu=True --env=classifier --load-model-path=None --batch-size=4

没有问题 😂
_2018-01-30_14-43-24

@xinqiu
Copy link
Contributor Author

xinqiu commented Jan 30, 2018

谢谢谢谢😂我好像知道错了> <,用pip装到py3.5里去了,结果启动的visdom还是py2.7里的旧版本

@chenyuntc
Copy link
Owner

😊

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