sudo dpkg -P $(dpkg -l | grep nvidia-driver | awk '{print $2}')
sudo apt autoremove
sudo lshw -C display
NVIDIA Apmere cards including 3070, 3080 and 3090 dos not work with CUDA 10.
############################################ 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 = [] |
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 |
from pika import PlainCredentials, ConnectionParameters, BlockingConnection | |
USERNAME = '' | |
PASSWORD = '' | |
IPADDRESS = '' | |
PORT = 5672 | |
credentials = PlainCredentials(USERNAME, PASSWORD) | |
parameters = ConnectionParameters(IPADDRESS, |