- Creating a partition with fdisk
- Creating an ext3 file system
- Mounting the file system
- Updating the /etc/fstab file
- Rebooting the instance
- Checking the file system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pika import PlainCredentials, ConnectionParameters, BlockingConnection | |
USERNAME = '' | |
PASSWORD = '' | |
IPADDRESS = '' | |
PORT = 5672 | |
credentials = PlainCredentials(USERNAME, PASSWORD) | |
parameters = ConnectionParameters(IPADDRESS, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model = torch.hub.load('ultralytics/yolov5', 'custom', path='path/to/best.pt') # default | |
model = torch.hub.load('path/to/yolov5', 'custom', path='path/to/best.pt', source='local') # local repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################ NOTE ######################################################## | |
# | |
# Creates NER training data in Spacy format from JSON downloaded from Dataturks. | |
# | |
# Outputs the Spacy training data which can be used for Spacy training. | |
# | |
############################################################################################################ | |
def convert_dataturks_to_spacy(dataturks_JSON_FilePath): | |
try: | |
training_data = [] |