net结构文件找不到
在main.py 中import
load失败
1 | torch.save(the_model.state_dict(), PATH) |
load UnicodeDecodeError
1 | from functools import partial |
热爱平淡,向往未知
在main.py 中import
1 | torch.save(the_model.state_dict(), PATH) |
1 | from functools import partial |
###RuntimeError: tried to construct a tensor from a int sequence, but found an item of type numpy.int64 at index (0)
Using .tolist() for numpy array as follows.
1 | pgrep -lf sshfs |
1 | sudo apt-get install proxychains |
编辑/etc/proxychains.conf
1 | sudo vim /etc/proxychains.conf |
在最后的ProxyList里加入Shawdowsocks的代理设置:
1 | socks5 127.0.0.1 1080 |
编辑/usr/bin/proxychains
1 | 修改 |
使用,只需要在运行程序的命令前加上proxychains即可
1 | proxychains dropbox start -i |
gpu 显卡进程占用
1 | sudo pkill python |
mac
1 | brew cask install osxfuse |
1 | tar -jxvf archive_name.tar.bz2 |
1 | model = torch.nn.DataParallel(model).cuda() |