-
Notifications
You must be signed in to change notification settings - Fork 165
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
base: main
Are you sure you want to change the base?
Conversation
nbdy
commented
Apr 15, 2024
•
edited
Loading
edited
- Replaced setup.py with pyproject.toml
- Updated requirements.txt (opencv was not used)
- Renamed module from RealESRGAN (collides with original pypi project) to py-real-esrgan
- Moved main.py to real_esrgan/main.py and added arguments (scale, model path, input path, output path)
- Updated README.md
- Reformatted code / optimized imports
add arguments
optimize imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we really need to rename a project?
] | ||
dependencies = [ | ||
"numpy", | ||
"opencv-python", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we need it?
I think you forgot to delete :)
"opencv-python", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, it is not imported anywhere. I missed that.
numpy | ||
opencv-python | ||
Pillow | ||
torch>=1.7 | ||
torchvision>=0.8.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I think we can delete this file entirely 'cause we already use pyproject.toml
for it
numpy | |
opencv-python | |
Pillow | |
torch>=1.7 | |
torchvision>=0.8.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I kept this file is that PyCharm prompts the user if there are any missing dependencies.
It was more a convenience for me. Generally we can remove it, yes.
If you don't intent to publish it to pypi or if you don't want anyone to publish their work using this library on pypi there is no need to rename the project. |