본문 바로가기
반응형

2024/0412

[RPI] How to use Inductive Proximity Sensor with Raspberry Pi 3 Model B import timeimport RPi.GPIO as GPIO# Pin of InputGPIOpin = -1# Initial the input pindef initialInductive(pin): global GPIOpin GPIOpin = pin GPIO.setmode(GPIO.BCM) GPIO.setup(GPIOpin,GPIO.IN, pull_up_down=GPIO.PUD_DOWN) print("Finished Initiation") print(GPIOpin)# Detect Metaldef detectMetal(): if(GPIOpin != -1): state = GPIO.input(GPIOpin) if state: print("Metal Detected") e.. 2024. 4. 29.
[Python] How to Run 70B LLMs on a Single 4GB GPU https://generativeai.pub/how-to-run-70b-llms-on-a-single-4gb-gpu-d1c61ed5258c How to Run 70B LLMs on a Single 4GB GPUHave you ever dreamed of using the state-of-the-art large language models (LLMs) for your natural language processing (NLP) tasks, but felt…generativeai.pub   #https://generativeai.pub/how-to-run-70b-llms-on-a-single-4gb-gpu-d1c61ed5258cfrom airllm import AutoModelMAX_LENGTH = 128.. 2024. 4. 25.
[Python]Saving ML Models # https://machinelearningmastery.com/save-load-machine-learning-models-python-scikit-learn/# Save Model Using Pickleimport pandasfrom sklearn import model_selectionfrom sklearn.linear_model import LogisticRegressionimport pickleurl = "https://raw.githubusercontent.com/jbrownlee/Datasets/master/pima-indians-diabetes.data.csv"names = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', .. 2024. 4. 25.
[Python]Convolutional Neural Network (CNN) & Computer Vision https://medium.com/@kaanerdenn/convolutional-neural-network-cnn-computer-vision-75f17400b261 Convolutional Neural Network (CNN) & Computer VisionIn this exploration of Convolutional Neural Networks (CNNs) and their pivotal role in the field of computer vision, we aim to lay the…medium.com  In this exploration of Convolutional Neural Networks (CNNs) and their pivotal role in the field of computer.. 2024. 4. 25.
반응형