pytorch-best-practice icon indicating copy to clipboard operation
pytorch-best-practice copied to clipboard

A Guidance on PyTorch Coding Style Based on Kaggle Dogs vs. Cats

Results 12 pytorch-best-practice issues
Sort by recently updated
recently updated
newest added

@chenyuntc 你好,我按照教程的代码自己实践了一下,训练过程中发现visdom的val_accuracy始终在50%左右,验证集的混淆矩阵也基本只有一类有值,我以为自己哪里写错了,又把原代码跑了一遍,发现也是一样的现象,训练过程中的可视化结果如下图,按道理val_accuracy应该会随着训练的进行不断增加,不知道是哪里有问题?如果有遇到类似问题的朋友也请指教一下,先行谢过! ![image](https://user-images.githubusercontent.com/26182129/51038420-2776af00-15ee-11e9-941c-faddaac11e48.png)

在运行python main.py train时出现如下问题,系统环境为ubuntu16.04+cuda9.0+cudnn7.0.5,百度之后发现该问题可能是因为cuda计算能力不够,cudnn需要计算能力达到3.0的cuda,但是cuda9.0的计算能力为2.1,是不足以支持的,但是在配置环境的时候网上有很多教程都是ubuntu16.04+cuda9.0+cudnn7.0.5,想问一下真的是cuda计算能力的问题吗还是别的问题

因为我在Python3运行,所以要做一些小的修改,, win10-64、CPU环境, 1.utils/visualize.py 44行:win=unicode(name) --> win=str(name) 2.main.py 22行: 加 import config 3.main.py 108行:loss_meter.add(loss.data[0]) --> loss_meter.add(loss.item()) 4.config.py 10行:load_model_path = 'checkpoints/model.pth' --> load_model_path = None 5.config.py 12行:batch_size = 128 --> batch_size =...

程序在运行的时候出现 "please use transforms.Resize instead.") /usr/local/lib/python2.7/dist-packages/torchvision/transforms/transforms.py:563: UserWarning: The use of the transforms.RandomSizedCrop transform is deprecated, please use transforms.RandomResizedCrop instead. "please use transforms.RandomResizedCrop instead.") 1%| | 137/17500 [01:50

在执行的过程中发生了数据溢出,下面是执行过程中的输出: ``` python main.py train --train-data-root=/home/linux_fhb/data/cat_vs_dog/train --use-gpu --env=classifier user config: env classifier model ResNet34 train_data_root /home/linux_fhb/data/cat_vs_dog/train test_data_root ./data/test1 load_model_path None batch_size 32 use_gpu True num_workers 4 print_freq 20 debug_file /tmp/debug...

有两个8G的显卡,显示这个错误,想问一下原因,谢谢

python main.py train --data-root=./data/train --use-gpu=True --env=classifier Traceback (most recent call last): File "main.py", line 170, in import fire File "C:\Users\---\Anaconda2\envs\py36\lib\site-packages\fire\core.py", line 127, in Fire component_trace = _Fire(component, args, context, name)...

No such file or directory: 'checkpoints/model.pth'

File "main.py", line 171, in fire.Fire() File "/home/thinkjoy/anaconda3/lib/python3.6/site-packages/fire/core.py", line 127, in Fire component_trace = _Fire(component, args, context, name) File "/home/thinkjoy/anaconda3/lib/python3.6/site-packages/fire/core.py", line 366, in _Fire component, remaining_args) File "/home/thinkjoy/anaconda3/lib/python3.6/site-packages/fire/core.py", line 542,...