A study of SOTA models and their ability to detect AI-generated imagery when faced with common transformations like cropping and resizing.
-
Install
uvby running the following command in your terminal:curl -LsSf https://astral.sh/uv/install.sh | sh
Read more about installing uv here.
-
Create a virtual environment named .venv in the project root by running:
uv venv .venv --python 3.12
This will also install the specified Python version if it's not already available on your system.
Activate the virtual environment by running the command provided upon successful creation.
-
If a 'pyproject.toml' file already exists in the project root, run:
uv sync
This will install the main dependencies of the project. To install all optional dependency groups (like dev, test, docs), run:
uv sync --all-extras --all-groups
-
To install additional libraries:
uv add <package-name>
For a specific version:
uv add '<package-name>==1.2.3'To add to a specific dependency group:
uv add <package-name> --group <group-name>
-
To uninstall libraries:
uv remove <package-name>
-
Run familiar
pipcommands usinguv:uv pip install <package-name> uv pip uninstall <package-name> uv pip list
NOTE: These commands will operate within the
.venvvirtual environment, but will not update thepyproject.tomlfile. Useuv addanduv removeto manage dependencies in the project configuration.