pytorch-beginner
pytorch-beginner copied to clipboard
pytorch tutorial for beginners
Your file produces Error: RuntimeError: output with shape [1, 28, 28] doesn't match the broadcast shape [3, 28, 28] It probably due to the gray-scale image downloaded automatically.
1from logger import Logger有警告 2D:\Anaconda3\python.exe G:/pytorch/pytorch-beginner-master/04-Convolutional-Neural-Network/convolution_network.py epoch 1 ********** Traceback (most recent call last): File "G:/pytorch/pytorch-beginner-master/04-Convolutional-Neural-Network/convolution_network.py", line 78, in running_loss += loss.data[0] * label.size(0) IndexError: invalid index of a 0-dim...
it starts with a bit of randomness, and then afterl ike a 100 batches, it just spits out white images
There is something wrong in the normalization part of the dataset; Also, 'save_image' does not accept the ‘illegal’ input. Users should fix these bugs.
https://github.com/L1aoXingyu/pytorch-beginner/blob/052ed0d4e3d3959e86c88737fd133ef5d0180acc/08-AutoEncoder/Variational_autoencoder.py#L75 this line here it assigned to variable called BCE, but uses MSE instead
1. need to change .data[0] => .item() 2. add model.train() at beginning of the loop Only need to modify the training loop code, below is the fixed code worked for...
RuntimeError: Caught RuntimeError in DataLoader worker process 0. Original Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop data = fetcher.fetch(index) File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data...
02 不是逻辑回归,应该还是线性回归。逻辑回归需要要激活函数,你好好看一下
请问第7个项目没有例子吗,我发现./data/文件夹下的文件并不存在,无法运行 其次项目中有很多用来老版本pytorch所导致的问题(并不像README所说使用pytorch1.0),希望作者有时间可以进行改进 : )
请问一下,rcnn训练的时候如果label时不定长的,应该如何处理?