-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_mac.sh
More file actions
executable file
·36 lines (27 loc) · 985 Bytes
/
setup_mac.sh
File metadata and controls
executable file
·36 lines (27 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Setup script for ImageAlchemy AI on macOS with Apple Silicon
echo "Setting up ImageAlchemy AI for macOS with Apple Silicon..."
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Update pip
pip install --upgrade pip
# Install PyTorch with MPS support
echo "Installing PyTorch with Metal support for Apple Silicon..."
pip install torch torchvision
# Install the remaining requirements
echo "Installing other dependencies..."
pip install -r requirements.txt
# Create images directory if it doesn't exist
mkdir -p images
# Make run script executable
chmod +x run_mac.sh
echo ""
echo "=== Setup Complete! ==="
echo ""
echo "To run the application on your Mac:"
echo "1. Activate the virtual environment: source venv/bin/activate"
echo "2. Start the server: uvicorn main:app --reload"
echo "3. The application will be available at http://localhost:8000"
echo ""
echo "You can also use the run_mac.sh script to start the server: ./run_mac.sh"