Skip to content

Update GUI, pytorch and the documentation #107

Merged
Ghassen-Chaabouni merged 5 commits into
mainfrom
update_ui_and_pytorch
Aug 25, 2023
Merged

Update GUI, pytorch and the documentation #107
Ghassen-Chaabouni merged 5 commits into
mainfrom
update_ui_and_pytorch

Conversation

@Ghassen-Chaabouni
Copy link
Copy Markdown
Contributor

Description

This PR updates the requirements, the documentation and the GUI

  • Communicate errors to the user in the GUI
  • Pop up info when hover on the box
  • Add info under the button run that dot may take few minutes to run the first time
  • Remove unnecessary fields in the GUI
  • Update the dot model checkpoints
  • Update torch to v2.0.1
  • Update cuda to v11.8
  • Update the instructions for windows

Changelog:

Added:

  • Added this script arcface_models.py according to the new updates in the SimSwp repo so that we can use the latest version of pytorch

Updated:

  • Instructions in README.md
  • Update pytorch in requirements-dev.txt, requirements.txt and setup.cfg
  • Updated these scripts fs_model.py, models.py, option.py according to the new updates in the SimSwp repo so that we can use the latest version of pytorch
  • Updated the GUI in ui.py

@Ghassen-Chaabouni Ghassen-Chaabouni added documentation Improvements or additions to documentation feature New feature or request labels Aug 24, 2023
@Ghassen-Chaabouni Ghassen-Chaabouni self-assigned this Aug 24, 2023
Comment thread README.md
- Install cuda 11.8 from [link](https://developer.nvidia.com/cuda-11-8-0-download-archive)
- Install `cudatoolkit` from `conda`: `conda install cudatoolkit=<cuda_version_no>` (replace `<cuda_version_no>` with the version on your machine)
- Install `torch` and `torchvision` dependencies: `pip install torch==1.9.0+<cuda_tag> torchvision==0.10.0+<cuda_tag> -f https://download.pytorch.org/whl/torch_stable.html`, where `<cuda_tag>` is the CUDA tag defined by Pytorch. For example, `pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html` for CUDA 11.1. See [here](https://pytorch.org/get-started/previous-versions/) for a list of all available `torch` and `torchvision` versions.
- Install `torch` and `torchvision` dependencies: `pip install torch==2.0.1+<cuda_tag> torchvision==0.15.2+<cuda_tag> torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118`, where `<cuda_tag>` is the CUDA tag defined by Pytorch. For example, `pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118` for CUDA 11.8.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

current users might face issues. why doesn't cu11.1 work?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I updated the repo to the latest version of pytorch. In their documentation, they are using cuda 11.7 or 11.8

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if it's possible to support cu11.1 as well as cu11.7/cu11.8, that would be great.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tested this PR with torch1.9.0+cu111 and it seemed to be working fine.
But the old users will need to download the new checkpoints again.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Ghassen-Chaabouni okay. please update the README accordingly.

Copy link
Copy Markdown
Member

@ajndkr ajndkr left a comment

Choose a reason for hiding this comment

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

Please update README before merging.

@Ghassen-Chaabouni Ghassen-Chaabouni merged commit d5cd75f into main Aug 25, 2023
@Ghassen-Chaabouni Ghassen-Chaabouni deleted the update_ui_and_pytorch branch August 25, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants