With animations! (using opencv)
Ensure Python
and pip
are added to PATH.
- Clone this repository (
git clone https://github.com/np-overflow/2024oh-grp2.git && cd 2024oh-grp2
) - Install the dependencies (
pip install -r requirements.txt
) - Run
main.py
with desired arguments
- Go to PyTorch's Get Started page.
- Pick the right version for you and download it with the provided command.
Arguments:
-
Local path (
-p OR --path [PATH]
)Gets the image locally via file path.
-
URL (
-u OR --url [URL]
)Get an image from the internet via URL.
-
Mode (
-m OR --mode [MODE]
)Chooses the type of transformation to apply to the passed image. Legal arguments are
boing || static || rotate || spin
.Boing will apply compressions and stretches to the x and y axes, creating a bouncy effect.
Static will simply render the image in the terminal.
Rotate...
Spin... @jayden
-
AI Generate (
--generate [PROMPT]
)Generates an image with the provided prompt.
Example use:
python main.py -p C:/Users/user/Desktop/cat.png -m spin