Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyannchen authored and ziyannchen committed Sep 19, 2023
1 parent ea13481 commit 7bd5675
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ conda activate diffbir
pip install -r requirements.txt
```

Note the installation is only compatiable with **Linux** users. If you are working on different platforms, please check [xOS Installation](assets/docs/installation_xOS.md).
Note the installation is only compatible with **Linux** users. If you are working on different platforms, please check [xOS Installation](assets/docs/installation_xOS.md).

<!-- ```shell
# clone this repo
Expand Down
2 changes: 1 addition & 1 deletion assets/docs/installation_xOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ You can choose to run on **CPU** without `xformers` and `triton` installed.
To use **CUDA**, please refer to [issue#24](https://github.com/XPixelGroup/DiffBIR/issues/24) to try solve the problem of `triton` installation.

# MacOS
<!-- Currenly only CPU device is supported to run DiffBIR on Apple Silicon since most GPU acceleration packages are compatiable with CUDA only.
<!-- Currenly only CPU device is supported to run DiffBIR on Apple Silicon since most GPU acceleration packages are compatible with CUDA only.
We are still trying to support MPS device. Stay tuned for our progress! -->

Expand Down
2 changes: 1 addition & 1 deletion model/spaced_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _extract_into_tensor(arr, timesteps, broadcast_shape):
# float64 as default. float64 is not supported by mps device.
res = torch.from_numpy(arr).to(device=timesteps.device)[timesteps].float()
except:
# to be compatiable with mps
# to be compatible with mps
res = torch.from_numpy(arr.astype(np.float32)).to(device=timesteps.device)[timesteps].float()

while len(res.shape) < len(broadcast_shape):
Expand Down

1 comment on commit 7bd5675

@gaozhiyi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你好,在2023年11月22日我在wsl上安装DiffBIR时遇到错误,是gradio导致的,现在已解决。
由于gradio更新频繁,导致最新版的gradio与DiffBIR不兼容最新版本为gradio==4.5.0。
然而在本项目的requirements.txt中并没有设定gradio的具体版本。
经测试gradio==3.41.2可以正常运行。

建议:
请更新requirements.txt
将gradio设置为gradio==3.41.2

以上

Please sign in to comment.