Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.

3.2.0#51

Merged
Daethyra merged 11 commits intostreamlitfrom
3.2.0
Mar 5, 2024
Merged

3.2.0#51
Daethyra merged 11 commits intostreamlitfrom
3.2.0

Conversation

@Daethyra
Copy link
Copy Markdown
Owner

@Daethyra Daethyra commented Mar 5, 2024

  • update torch version and source index
  • added CUDA support for Torch
  • removed line in streamlit config file
  • added image upscaling function in utility_funcs.py
  • added footer to all (Page)s
  • ran isort and black for formatting consistency

Daethyra added 10 commits March 4, 2024 15:00
…pdate poetry.lock

Updated the torch version to "^2.2.0" and specified the supplemental source where torch is hosted in the pyproject.toml file to ensure compatibility with specific environments.
I NEED to see errors while developing
… libraries to version 11

Updated the NVIDIA CUDA libraries to version 11, including cuBLAS, cuPTI, nvrtc, runtime, cuDNN, cufft, curand, cusolver, cusparse, nccl, and nvtx. This change aligns with the latest version of Torch (2.2.1+cu118) and torchvision (0.17.1).
- Added a new file "freestream/pages/2_🗺️_Image_Upscaler.py" to implement image upscaling functionality using HuggingFace and Torch. This includes the creation of a user interface for uploading images, organizing UI elements into columns, and displaying both the original and upscaled images. Additionally, a utility function "image_upscaler" has been added to upscale images using HuggingFace and Torch, providing users with an enhanced viewing experience.
…caler

- Added an environment variable to set PYTORCH_CUDA_ALLOC_CONF to 'expandable_segments:True' for better memory management.
- Implemented image resizing functionality in the image_upscaler function to downsize images larger than 1024x1024 before upscaling, preventing potential memory issues.
- Updated the Image Upscaler page in FreeStream, including UI changes, sidebar additions, and a note about ongoing development. Also adjusted the image downscaling logic to improve user experience and added a link to the current upscaler being used.
- Removed image object removal feature
- Updated Streamlit application structure to multipage
- Updated task list with completed and pending tasks
Add a footer to the pages using community-suggested styling. This commit introduces a consistent footer across different pages, enhancing the user experience and providing credit to the developer.
Bumped the project version from 3.1.2 to 3.2.0 in pyproject.toml to reflect recent changes and updates.
… code style)

Reformatted import statements and code style for better readability and consistency. Also, added missing newline at the end of the file in "2_🗲Image_Upscaler.py".
@Daethyra Daethyra added documentation Improvements or additions to documentation enhancement New feature or request dependencies Pull requests that update a dependency file labels Mar 5, 2024
@Daethyra Daethyra added this to the (Page) Upscale Images milestone Mar 5, 2024
@Daethyra Daethyra self-assigned this Mar 5, 2024
@Daethyra Daethyra linked an issue Mar 5, 2024 that may be closed by this pull request
@Daethyra Daethyra enabled auto-merge March 5, 2024 06:48
@Daethyra Daethyra disabled auto-merge March 5, 2024 06:48
…m 1024. added upscaling limitations section

- Updated the image upscaler page to reflect new limitations on image dimensions for downscaling. Also, added a note about the current upscaler's issue with generating excess content around the edge of the image. The underlying upscale model is planned for replacement, so this is not a primary concern. Additionally, modified the utility function to downsample images if their width or height exceeds 512 pixels instead of 1024.
@Daethyra Daethyra enabled auto-merge March 5, 2024 07:06
@Daethyra Daethyra disabled auto-merge March 5, 2024 07:06
@Daethyra Daethyra enabled auto-merge March 5, 2024 07:07
@Daethyra Daethyra merged commit cc75578 into streamlit Mar 5, 2024
@Daethyra Daethyra deleted the 3.2.0 branch March 6, 2024 00:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Image Upscaler (Page) Not Represented on Homepage list of tools

1 participant