sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: stable-diffusion-webui
Issue: Add suport for Real-CUGAN Upscaler
Labels: enhancement

Currently there is no way to use [Real-CUGAN](https://github.com/bilibili/ailab/blob/main/Real-CUGAN/README_EN.md) in the web UI, and it seems a decent alternative to R-ESRGAN.

I'd like to be able to select this Upscaler in the extras tab.

But I've tryed to drop the .pth in te RealESRGAN folder and it does not work.
Currently I'm using [ Waifu2x-extension-GUI ](https://github.com/AaronFeng753/Waifu2x-Extension-GUI) but I only use the Real-CUGAN upscaler,  and the UI seems a bit cluttered.

Below are some examples comparing the original image with R-ESRGAN and R-CUGAN.

Original: 
![Original Image-Euler a-70 steps-seed 1854224268-hash 11df8a9b-(512x960)](https://user-images.githubusercontent.com/29217336/195247985-dc1b1634-7e65-4b73-aeba-47be5b2a7fd1.png)

Upscaled with R-ESRAGAN:
![RESRGANx2-Euler a-70 steps-seed 1854224268-hash 11df8a9b-(512x960)](https://user-images.githubusercontent.com/29217336/195248307-327ed671-ba73-47dc-aeb2-271ba5d6cfe4.png)

Upscaled with R-CUGAN:
![RCUGANx2-Euler a-70 steps-seed 1854224268-hash 11df8a9b-(512x960)_waifu2x_2x_3n_png](https://user-images.githubusercontent.com/29217336/195248482-c155e478-96c8-4941-b6a0-2d17758b7000.png)
Repository: transformers
Issue: INF encountered when using sampling with temperature.
Labels: WIP

### System Info

latest transformers version == 4.24.0
When generating samples with mBART, I encounter this problem:
![image](https://user-images.githubusercontent.com/10862038/195253207-8229466b-8342-458d-ac40-0b40edd801af.png)

Looking deeply into the codes, I find the problem roots from the beam score added to next_token_scores here:
https://github.com/huggingface/transformers/blob/bc21aaca789f1a366c05e8b5e111632944886393/src/transformers/generation_utils.py#L2566

The original value of beam_scores is 0, but when using temperature like 0.5, the score is also divided the temperature value in logit_warper and gets larger and larger. And finally it causes the overflow of next_token_scores.  

### Who can help?

@patrickvonplaten @Narsil @gante 

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

**I provide a simple code that can reproduce this issue.** 

import transformers
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("facebook/mbart-large-50-many-to-many-mmt")
model = AutoModelForSeq2SeqLM.from_pretrained("facebook/mbart-large-50-many-to-many-mmt")        

model = model.cuda()

src = 'In einem Notruf erzählte Professor Shannon Lamb mit einer etwas zittrigen Stimme der Polizei, dass er seine Freundin erschossen habe und dass die Beamten zu seinem Haus kommen müssten.'

encoded_hi = tokenizer(src, return_tensors="pt", padding=True).to('cuda') # do_sample=True
generated_tokens = model.generate(**encoded_hi, forced_bos_token_id=tokenizer.lang_code_to_id['en_XX'], temperature=0.5, do_sample=True, num_beams=10, num_return_sequences=10)

tgt_txt = tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)

### Expected behavior

I think this should be solved but I'm not sure about the effect of the beam_scores.
Repository: vscode
Issue: Suggestion preview (ghost text) disappears with incomplete trigger
Labels: bug,inline-completions

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.72.0
- OS Version: macOS 12.4

Steps to Reproduce:

0. Ensure preview text is enabled: `"editor.suggest.preview": true`

1.  Code:
```ts
vscode.languages.registerCompletionItemProvider('bat', {
        async provideCompletionItems(document, position, token, context) {
            await new Promise(resolve => {
                setTimeout(resolve, 1000)
            })
            return {
                items: [
                    {
                        label: 'test',
                    },
                ],
                isIncomplete: true,
            }
        },
    })
```
2.  Type `t`, wait until it resolves and type `e`

![Oct-12-2022 08-37-10](https://user-images.githubusercontent.com/46503702/195258796-e5d66a72-79ff-4c43-b5d9-3ec7e0e6b7c9.gif)

Preview text disappears, **however** Preview text is still valid, suggest widget remains active and accepting completion (tab or enter) works. It should work like suggest widget: it shouldn't disappear until new items are resolved.

Of course in real word latency of these providers (like emmet) can be around 10-50ms and user would see annoying flickering in this case.

Even if provider is sync, sometimes it is possible to see ghost text flickering.

Also, as you could see in the gif, typing backwards doesn't remove preview text, however provider is reinvoked (but not with `incomplete` trigger)
Repository: pytorch
Issue: Poisson sampling on GPU fails for high rates
Labels: module: cuda,triaged,module: random

### 🐛 Describe the bug

For rates > 1e10, the Poisson sampling on the GPU delivers incorrect results

```python

import torch
torch.set_default_dtype(torch.float64)
a = torch.ones((100, 100))*1e10

b_cpu = torch.poisson(a.to("cpu"))
b_cuda = torch.poisson(a.to("cuda"))

print(b_cpu.mean())
print(b_cuda.mean())

```

### Versions

Collecting environment information...
PyTorch version: 1.12.1+cu116
Is debug build: False
CUDA used to build PyTorch: 11.6
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.6 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
CMake version: version 3.10.2
Libc version: glibc-2.17

Python version: 3.7.13 (default, Mar 29 2022, 02:18:16)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.4.0-125-generic-x86_64-with-debian-buster-sid
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration: 
GPU 0: NVIDIA GeForce GTX 1050 Ti
GPU 1: NVIDIA GeForce RTX 2080 SUPER

Nvidia driver version: 515.65.01
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.5.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.5.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.5.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.5.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.5.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.5.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.5.0
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.21.5
[pip3] numpydoc==1.4.0
[pip3] torch==1.12.1+cu116
[pip3] torchvision==0.13.1+cu116
[conda] blas                      1.0                         mkl  
[conda] mkl                       2021.4.0           h06a4308_640  
[conda] mkl-service               2.4.0            py37h7f8727e_0  
[conda] mkl_fft                   1.3.1            py37hd3c417c_0  
[conda] mkl_random                1.2.2            py37h51133e4_0  
[conda] numpy                     1.21.5           py37h6c91a56_3  
[conda] numpy-base                1.21.5           py37ha15fc14_3  
[conda] numpydoc                  1.4.0                    pypi_0    pypi
[conda] torch                     1.12.1+cu116             pypi_0    pypi
[conda] torchvision               0.13.1+cu116             pypi_0    pypi

cc @ngimel @pbelevich
Repository: godot
Issue: EditorPlugin handle(object) function called 2 or 3 times when select node or switch scene tab
Labels: bug,topic:editor,topic:plugin

### Godot version

3.5.1stable(Steam Version)

### System information

Windows 10

### Issue description

When switch between scene tabs, EditorPlugin handle() will be called twice if no nodes selected in new opened scene, and be called 3 times if nodes selected in new opened scene(select a node then open another scene and then switch back). 
When select a new node, if the new node is the root node, handle() will be called twice.

### Steps to reproduce

Open the project, switch between scenes, and nodes. Check the output print.

### Minimal reproduction project

[PluginHandleTwice.zip](https://github.com/godotengine/godot/files/9761943/PluginHandleTwice.zip)

https://user-images.githubusercontent.com/9168814/195263763-be38bdd4-b4a7-4297-93be-743b76ea83de.mp4
Repository: stable-diffusion-webui
Issue: TI/HN training: Set preview constant seed
Labels: enhancement

When training textual inversion, it's useful to see the previews generated. Being able to set a preview prompt here also helps. However, it seems useful to allow setting a constant seed when generating previews so you can see how the same seed changes over time as the embedding/hypernetwork is developed.

Would it make sense to add a "Preview Seed" setting alongside the Preview Prompt setting in the TI tab?
Repository: transformers
Issue: ERNIE and tensorflow2
Labels: TensorFlow,New model

### Feature request

Checked the transformersss Explanatory document , I found that only ErnieModel that supports torch exists. Is there any plan to release TFErnieModel later?

### Motivation

I am using the tensoflow2 framework  and want use ERNIE.

### Your contribution

sorry.
Repository: neovim
Issue: Removing files from spellcheck file via `zug`, `zuw` deletes first character always
Labels: bug-vim,spell,needs:vim-patch

### Neovim version (nvim -v)

NVIM v0.9.0-dev-77-gf175ca9f7

### Vim (not Nvim) behaves the same?

Yes, VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 13 2022 09:35:02)

### Operating system/version

Pop! OS

### Terminal name/version

Kitty

### $TERM environment variable

xterm-kitty

### Installation

Self-compiled

### How to reproduce the issue

```vim
nvim --clean
:set spell
i
fooee
<ESC>
zg
zug
:e /opt/share/nvim/runtime/spell/en.utf-8.add
:echo expand("<cWORD>")
#ooee
```

### Expected behavior

#fooee to be written to /opt/share/nvim/runtime/spell/en.utf-8.add

### Actual behavior

#ooee is written to /opt/share/nvim/runtime/spell/en.utf-8.add
Repository: storybook
Issue: Open redirect : https://[your storybook]//example.com/..;/x
Labels: bug,needs triage

**Describe the bug**
There's an open redirect in some Storybook 6.5.9, but I'm not quite clear what causes it and I can't repro on next despite not seeing anything that looks like a fix in the changelogs since. It's barely a security issue (hence the regular GH issue), but I suspect that any users of Storybook with a bug bounty gets loads of reports about it :/

**To Reproduce**
I only managed to reproduce on 6.5.9:
On our instance: https://midnight-storybook.payfit.io//example.com/..;/x 
On one of the Chromatic demos: https://develop--60919c26122bd50039b34644.chromatic.com//example.com/..;/x

I tried local repro on next with both the html and react renderers, and no luck, which makes me think there might be some side-effects due to the local setup.

**System**
Unfortunately, I don't have the details of our deployment nor can I ssh into our prod servers. If that helps, I can try to pull any info you'd need on request.

**Additional context**
This has been reported to us via a bug bounty program, so I don't have context as to how, where or when the bug was found initially (things like this will get reported accross several programs). It's been active at least for a month or two. I've dug around a little in your code, but so far I'm out of luck. I'll keep looking, and maybe this will end up with a PR, but I'm filing this in case this rings a bell for someone.

cc @soupette fyi, who's working on this with me :)
Repository: PowerToys
Issue: Span displays shortcut for FancyZones
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

A user-defined keyboard shortcut that toggles the "Span across monitors" checkbox.

### Scenario when this would be used?

Application and zone layout switching. This would function well along with the other FancyZones shortcuts allowing the user to toggle the span monitors checkbox without having to open Power Toys / FancyZones to enable and disable the feature.

### Supporting information

I believe my issue with FancyZones  "Span across monitors" is due to having different sizes of displays (PLP+1  32,55,32+16") When I leave the layout editor with span across enabled, the entire layout shrinks to about 75% and moves up and to the left away from the 16" screen.  Not checking the "Span across monitors" box solves the issue. Still, I like to combine the PLP monitors into one big display when working with extensive schedules, spreadsheets, and occasional other tasks. Having one big zone spanning them doesn't cause the same malfunction, but it is slightly cumbersome opening the program to switch back and forth. I do have some screenshots showing the difference between the zone locations in and out of the editor if anyone is interested. This is intended to be a feature request and not a troubleshooting post though, so they are available upon request.
Repository: create-react-app
Issue: Specification on creating functional or class component 
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?
when we run **npx create-react-app app-name** need an option to specify react component created should a functional component or a class component.


This will reduce developers initial code changes as per the requirement!
Repository: vscode
Issue: Quick input list dom nodes hang around after quick input dismissed
Labels: debt,perf,quick-pick

Type: <b>Bug</b>

1. Open dev tools
1. Open quick input and start typing a file name
2. Close the quick input with escape
1. In the devtools, look at the quick input dom

**Bug**
The list elements for the previously showing quick input are still around

![Screen Shot 2022-10-12 at 1 12 30 AM](https://user-images.githubusercontent.com/12821956/195288816-d8feecd0-4469-40d4-a87e-2b4540b4fbdb.png)

While they are cleaned up once the quick input shows again, for performance it would be better to free them once the input closes and they are no longer needed

VS Code version: Code - Insiders 1.73.0-insider (Universal) (bd1b7a384f8a5ab9fb5a6a0e8fea370e589f43a3, 2022-10-11T09:27:32.881Z)
OS version: Darwin x64 21.6.0
Modes:
Sandboxed: Yes

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|5, 5, 5|
|Memory (System)|32.00GB (0.03GB free)|
|Process Argv|--crash-reporter-id 48781ca2-1705-4f64-9bab-325055aab55d|
|Screen Reader|no|
|VM|0%|
</details>
<!-- generated by issue reporter -->
Repository: PowerToys
Issue: Fancy zone layout as Single alt-tab group
Labels: Idea-Enhancement,Product-FancyZones

### Description of the new feature / enhancement

Like in the windows 11 alt tab menu, It will be useful if the whole fancy zone layout was given as a single group. 

![image](https://user-images.githubusercontent.com/58987457/195302814-1b63594b-d0f1-4cfb-bacd-ece079efa8ce.png)

The whole fancy zone layout could be a single group.

### Scenario when this would be used?

I mostly use fancy zone when developing and I frequently alt tab to see documentation and then comeback to the development layout. But it is not convenient if each window in the fancy zone is separate and I have to alt tab multiple times to get back to the layout with every window showing. This is be vey useful for people with a single monitor like myself.

### Supporting information

_No response_
Repository: rust
Issue: Trait impls using associated types of a type defined in another crate cause confusing "conflicting implementations" error although implementations don't actually conflict
Labels: A-trait-system,C-bug,T-types,A-coherence

I tried this code:

* `Cargo.toml`
```toml
[workspace]
members = ["a", "b"]
```

* `a/Cargo.toml`
```toml
[package]
name = "a"
version = "0.1.0"
edition = "2021"
[dependencies]
```
* `b/Cargo.toml`
```toml
[package]
name = "b"
version = "0.1.0"
edition = "2021"
[dependencies]
a = { path = "../a" }
```

* `a/src/lib.rs`
```rust
pub trait Foo {
    type Bar;
}

pub trait Baz<T> {}

pub struct T;
impl Foo for T {
    type Bar = f32;
}
```

* `b/src/lib.rs`:
```rust
use a::{Baz, Foo};

pub struct S;

impl Foo for S {
    type Bar = u32;
}

impl Baz<i32> for S {}
impl Baz<<a::T as Foo>::Bar> for S {}
```

I expected to see this happen: It either would work fine, or the error message would be more exact and pointing out that this is not allowed because `a::T` is defined in another trait. There is not actual conflict here, just a potential conflict that can be caused by `a` changing the implementation later.

Instead, this happened:

```
error[E0119]: conflicting implementations of trait `a::Baz<i32>` for type `S`
  --> b/src/lib.rs:10:1
   |
9  | impl Baz<i32> for S {}
   | ------------------- first implementation here
10 | impl Baz<<a::T as Foo>::Bar> for S {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `S`

```

Note that this works perfectly fine if everything is in a single crate, or if `b` uses e.g. `<S as Foo>::Bar` instead.

### Meta
`rustc --version --verbose`:
```
rustc 1.64.0 (a55dd71d5 2022-09-19)
binary: rustc
commit-hash: a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52
commit-date: 2022-09-19
host: x86_64-unknown-linux-gnu
release: 1.64.0
LLVM version: 14.0.6
```
Repository: stable-diffusion-webui
Issue: [Feature]Provide a new page to delete the information of png info
Labels: enhancement

If I want to erase the contents of Png info from some shared pictures, but do not want to modify the settings in setting so that locally generated pictures are not written to the header of png info, I need this function to erase the ne of png info
Repository: storybook
Issue: [7.0] Add sourcemaps to compiled SB packages
Labels: feature request,needs triage

**Is your feature request related to a problem? Please describe**
Troubleshooting issues within storybook is particularly difficult for packages that have been bundled with ts-up, because the output is minified and it's not possible to tell which files in the storybook source they map back to.

**Describe the solution you'd like**
I'd appreciate if we could build and ship sourcemaps, so that the sources tab of devtools shows something that makes sense.  :)

**Describe alternatives you've considered**
We could stop bundling and minifying, but this isn't a reason to stop that.

**Are you able to assist to bring the feature to reality?**
Maybe...
Repository: material-ui
Issue: VoiceOver Screenreader (blind) user blocked by drawer on iOS (WCAG)
Labels: bug 🐛,accessibility,component: drawer

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Steps:

surf to https://v4.mui.com/components/drawers/
scroll down to Temporary Drawer example
start VoiceOver
Choose "LEFT" menu (click and then double click). menu appears and rest of screen darkens
user is forced to choose a menu option. 
User cannot close menu by touching dark part of screen


### Current behavior 😯

_No response_

### Expected behavior 🤔

user should be able to close the menu in a generic way

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: next.js
Issue: `experimental.optimizeCss: true` provoke white flash ⚪️💥 on initial loading with dark theme even with `next-themes`
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

    Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 21.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64
    Binaries:
      Node: 16.14.2
      npm: 6.14.4
      Yarn: 1.22.17
      pnpm: 7.12.0
    Relevant packages:
      next: 12.3.1
      eslint-config-next: 12.3.1
      react: 18.2.0
      react-dom: 18.2.0

### What browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_

### Describe the Bug

in title

### Expected Behavior

no white flash

### Link to reproduction

https://github.com/shuding/nextra/tree/core/examples/swr-site

### To Reproduce

add `experimental.optimizeCss: true` in next config
```sh
pnpm i
pnpm --filter swr-site build
pnpm --filter swr-site start
```
![image](https://user-images.githubusercontent.com/7361780/195349116-68ce0bd5-1e1c-4eb8-9594-495d641abe22.png)