Closed shashank6341 closed 7 months ago
EC2 instance hosted : Type - t2.xlarge image - ami-0ed90a3b5bde5e371 keyPair assigned - HCI-Project.pem Storage - 30 gb 4 vCPUs
Steps Taken:
0) Start the instance, once status = Running , ssh to the instance : ssh -i "HCI-Project.pem" ec2-user@ec2-3-99-154-114.ca-central-1.compute.amazonaws.com (default user: ec2-user)
1) sudo yum update
2) sudo su ( Login to root user )
3)cd /home/ec2-user
4) sudo yum install python3-pip
Check if the python is installed correctly ( python 3.x.x )
5) pip install transformers torch pillow
6) pip3 install flask
7) on the local cd /to/path/at/HCI-Project.pem
8) change permissions :
chmod 700 HCI-Project.pem
9) scp the image_captioning.py to the ec2 instance:
scp -i /Users/khyati/Downloads/HCI-Project.pem /Users/khyati/Documents/Vision-Walk-HCI/image_captioning.py ec2-user@ec2-3-99-154-114.ca-central-1.compute.amazonaws.com:~/
10) change ownership of the file :
chown root:root image_captioning.py
11) change permissions :
chmod 700 image_captioning.py
12) execute the file :
python3 image_cpationing.py