examples
examples copied to clipboard
A set of examples around pytorch in Vision, Text, Reinforcement Learning, etc.
Hi, when I ran example **mnist_hogwild** on cuda, errors occurred as below: ``` File "main.py", line 66, in p.start() File "D:\Python3.7.3\lib\multiprocessing\process.py", line 112, in start self._popen = self._Popen(self) File "D:\Python3.7.3\lib\multiprocessing\context.py",...
Hello, I'm trying to run the dcgan/main.py file to train a GAN. I'm using a Windows 7 system with python 3.7 (anaconda) I run the following line %run main.py --dataset...
May I know how to fix the following error ``` mahmood@orca:fast_neural_style$ python3.7 neural_style/neural_style.py eval --content-image images/content-images/amber.jpg --model images/style-images/mosaic.jpg --output-image a1.jpg --cuda 1 Traceback (most recent call last): File "neural_style/neural_style.py", line...
How are mu and logvar calculated when the same activation of fc1 is passed to fc21 and fc22? Shouldn't both be considered as mu1 and mu2 and logvar calculated over...
Hi, The program was shut down and throw out an error ``Write failed: Broken pipe" when I was training imagnet using the cmd: python main.py -a resnet18 [imagenet-folder with train...
### Repro - Apply https://github.com/pytorch/examples/pull/381 on this repo - `cd` to the ImageNet folder - Run `python main.py --arch resnet18 --seed 0 --gpu 0 /path/to/imagenet/` on a multi-GPU machine, once...
https://github.com/pytorch/examples/blob/dcdabc22b305d2f2989c6f03570dfcd3919e8a5b/super_resolution/data.py#L41 I think resizing LANCZOS interpolation is better than default BILINEAR `Resize(crop_size // upscale_factor,interpolation=Image.LANCZOS)` __How does downsampling work in a normal SR?__ And In the Set5 dataset, I found that...
Hi, I have some questions about training the model. 1. "neural_style.py train --dataset /Users/me/Downloads/examples-master/fast_neural_style/me0 --style-image /Users/met/Downloads/examples-master/fast_neural_style/images/content-images/amber.jpg --save-model-dir /Users/umit/Downloads/examples-master/fast_neural_style/me/11 --epochs 2 --cuda 0" This is saving a .model file to my...
I'm confused with the doc comment for the `accuracy` function in the imagenet example: ```python def accuracy(output, target, topk=(1,)): """Computes the precision@k for the specified values of k""" maxk =...
I am running the below DCGAN code for LSUN dataset with lmdb. I noticed that as the number of iterations increases the data loading becomes very slow (like after 4000...