A complete guide to set up and manage personal and work GitHub accounts on the same machine using SSH keys with automatic Git configuration.
- Linux/Mac
- Git installed
- Access to both GitHub accounts
- Terminal/command line knowledge
| from pika import PlainCredentials, ConnectionParameters, BlockingConnection | |
| USERNAME = '' | |
| PASSWORD = '' | |
| IPADDRESS = '' | |
| PORT = 5672 | |
| credentials = PlainCredentials(USERNAME, PASSWORD) | |
| parameters = ConnectionParameters(IPADDRESS, |
| 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 |
| ############################################ 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 = [] |