Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update project / maintenance #29

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
rename project to py-real-esrgan so we can add it to pypi
  • Loading branch information
nbdy committed Apr 15, 2024
commit 599e99d04ccc99f5bea42bb88cf9972be7da1018
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Basic usage:
```python
import torch
from PIL import Image
from real_esrgan.model import RealESRGAN
from py_real_esrgan.model import RealESRGAN

device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion real_esrgan/__main__.py → py_real_esrgan/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import torch
from PIL import Image

from real_esrgan.model import RealESRGAN
from py_real_esrgan.model import RealESRGAN


def main():
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions real_esrgan/model.py → py_real_esrgan/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from PIL import Image
from huggingface_hub import hf_hub_url, cached_download

from real_esrgan.rrdbnet_arch import RRDBNet
from real_esrgan.utils import pad_reflect, split_image_into_overlapping_patches, stich_together, \
from py_real_esrgan.rrdbnet_arch import RRDBNet
from py_real_esrgan.utils import pad_reflect, split_image_into_overlapping_patches, stich_together, \
unpad_image

HF_MODELS = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from torch import nn as nn
from torch.nn import functional as F

from real_esrgan.arch_utils import default_init_weights, make_layer, pixel_unshuffle
from py_real_esrgan.arch_utils import default_init_weights, make_layer, pixel_unshuffle


class ResidualDenseBlock(nn.Module):
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "Real-ESRGAN"
version = "1.0.0"
name = "py-real-esrgan"
version = "2.0.0"
requires-python = ">= 3.10"
authors = [
{name = "Sberbank AI, Xintao Wang"},
Expand Down Expand Up @@ -39,4 +39,4 @@ Issues = "https://github.com/ai-forever/Real-ESRGAN/issues"
Changelog = "https://github.com/ai-forever/Real-ESRGAN/blob/main/CHANGELOG.md"

[project.scripts]
real_esrgan = "real_esrgan.__main__:main"
py-real-esrgan = "py_real_esrgan.__main__:main"