dlwpt-code
dlwpt-code copied to clipboard
Code for the book Deep Learning with PyTorch by Eli Stevens, Luca Antiga, and Thomas Viehmann.
In this [line](https://github.com/deep-learning-with-pytorch/dlwpt-code/blob/d6c0210143daa133bbdeddaffc8993b1e17b5174/util/util.py#L31), the inverse rotation needs to be left-multiplied rather than right-multiplied. The correctness can be verified by the following code snippet: ``` import numpy as np from util.util...
I was trying to run "p2ch10_explore_data.ipynb", facing import error from diskcache.core ImportError: cannot import name 'BytesType' Looks like diskcache has been updated and does not have 'BytesType' anymore. Any alternatives...
p
I use the same config epoch=1, work_num=8, batch_size=32 It works well in p2ch11, the RAM is stable at 6g but when I run the code 'python -m p2ch12.training --balanced' the...
So I am getting the following error on this line : https://github.com/deep-learning-with-pytorch/dlwpt-code/blob/d6c0210143daa133bbdeddaffc8993b1e17b5174/p2ch14/training.py#L410 ``` TypeError: linspace() missing 1 required positional arguments: "steps" ``` ```python threshold = torch.linspace(1, 0) tpr = (metrics_t[None,...
I use an RTX 3060 12GB GPU enabled desktop with RAM of 16GB DDR4 and CPU Intel Core i5 10400F. Also I mounted an external storage HDD drive and ran...
I've been working my way through the Jupyter Notebook for Chapter 8. When I run the cell that trains using L2 regularization ``` model = Net().to(device=device) optimizer = optim.SGD(model.parameters(), lr=1e-2)...
In the scripts of p1ch8 (section 8.5.3, page 227 to be specific), we are making sub-blocks of convolution using the following code: ```python self.resblocks = nn.Sequential( *(n_blocks * [ResBlock(n_chans=n_chans1)])) ```...
In the function for reading in the XYZ space of the CT `.mhd` file, why do you convert to 3x3 matrix? ``` class Ct: def __init__(self, series_uid): mhd_path = glob.glob('data-unversioned/part2/luna/subset*/{}.mhd'.format(series_uid))[0]...
hello, thank you for releasing this incredible book and for all of the code! it'd be help greatly if the LUNA dataset could be made available on a public s3...