Skip to content
#

pytorch

Here are 8,401 public repositories matching this topic...

h56cho
h56cho commented Nov 29, 2019

Hello,

According to HuggingFace Transformers documentation website (https://huggingface.co/transformers/model_doc/gpt2.html#gpt2doubleheadsmodel), under the GPT2DoubleHeadsModel, it defines the output lm_prediction_scores as the following:

lm_prediction_scores: torch.FloatTensor of shape (batch_size, num_choices, sequence_length, config.vocab_size)

To me this doesn't make sense. Shouldn

biggoron
biggoron commented Dec 4, 2019

With the latest version of scipy.misc, scipy.misc.toimage is no longer available. To load and save an image as png we now have to use PIL, breaking tensorboard image summary.

Here is how I fixed the bug:
1./ At the end of main.py, log a uint8 image
logger.image_summary(tag, (images * 255).astype(np.uint8), step+1)
2./ In Logger class, package image as bytes with the PIL library (mode="L

Real-Time-Voice-Cloning
ZzzackChen
ZzzackChen commented Jul 19, 2019

I had download pretrained model by 'bash scripts/download_cyclegan_model.sh cityscapes_label2photo',
and run 'test.py' to generate photos,
and run 'scripts/eval_cityscapes/evaluate.py',
finally the result as following is far less than the paper result
image
the paper result is following:

Flamefire
Flamefire commented Nov 13, 2019

Judging by the logic in https://github.com/horovod/horovod/blob/38e91bee84efbb5b563a4928027a75dc3974633b/setup.py#L1369 it is clear, that before installing Horovod one needs to install the underlying framework(s) (TensorFlow, PyTorch, ...).

This is not mentioned in the installation instructions which made me think, I can install Horovod and then any framework I like (or switch between them) and

DeNeutoy
DeNeutoy commented Jan 15, 2020

#3602 switched our docs from restructured text to markdown, which is a big improvement. However, there are some left over traces of rst formatting in the docstrings. It would be great if we could comb through these and update them.

  • commands
  • common
  • data
  • interpret
  • models
  • modules
  • nn
  • predictors
  • tools
  • training

How to help

TMVector
TMVector commented Sep 16, 2019

Support for storing large tensor values in external files was introduced in #678, but AFAICT is undocumented.

This is a pretty important feature, functionally, but it's also important for end users who may not realise that they need to move around more than just the *.onnx file.

I would suggest it should be documented in IR.md, and perhaps there are other locations from which it could be s

Invokar
Invokar commented Apr 22, 2019

Traceback (most recent call last):
File "main.py", line 234, in
fire.Fire()
File "/home/zhangqilong/anaconda3/lib/python3.6/site-packages/fire/core.py", line 127, in Fire
component_trace = _Fire(component, args, context, name)
File "/home/zhangqilong/anaconda3/lib/python3.6/site-packages/fire/core.py", line 366, in _Fire
component, remaining_args)
File "/home/zh

mabuge
mabuge commented Dec 26, 2019

Questions & Help

when i run the following example:
examples/mnist_voxel_grid.py

it stoped and warning :

python3.7/site-packages/torch_geometric/nn/conv/spline_conv.py:104: UserWarning: We do not recommend using the non-optimized CPU version of SplineConv. If possible, please convert your data to the GPU.
warnings.warn('We do not recommend using the non-optimized CPU '

how can i fi

dattran2346
dattran2346 commented Sep 20, 2019

The last pooling layer of SENet should be change from self.avg_pool = nn.AvgPool2d(7, stride=1) to self.avg_pool = nn.AdaptiveAvgPool2d((1, 1)) so that the model can take different input size.

heslowen
heslowen commented Oct 3, 2019

When I projecting an embedding with different labels, for example:

writer.add_embedding(same_embedding, labels_str_two,
                             tag=f'labels_str_two')
writer.add_embedding(same_embedding, labels_str_one, tag='labels_str_one')

I got two different pictures, just like these two pictures. So why relatively distances between points are different when projecting

iamtrask
iamtrask commented Jan 12, 2020

Describe the bug
FixedPrecision tensor has become a catch-all for a myraid of functionality which have nothing to do with fixing precision. At present it seems to include:

  1. The ability to model Fixed Precision Numbers using underlying Integer representations
  2. BigInt functionality allowing for large precision
  3. Convolutional functionality
  4. many references to specific subclass type
WZHsmile
WZHsmile commented Aug 28, 2019

anaconda3/envs/py27t04/include/python2.7 -c _roi_crop.c -o ./_roi_crop.o
In file included from /home/wangzhonghao/anaconda3/envs/py27t04/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4:0,
from _roi_crop.c:493:
/home/wangzhonghao/anaconda3/envs/py27t04/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:12:18: fatal error: cud

Improve this page

Add a description, image, and links to the pytorch topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the pytorch topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.