Skip to content

Instantly share code, notes, and snippets.

View Dipeshpal's full-sized avatar
🤣
LOL

Dipesh Paul Dipeshpal

🤣
LOL
View GitHub Profile
# RUN-1
Jurassic: hi
GPT3: Human what
Jurassic: AI what
GPT3: I am not allowed to say
Jurassic: (laughs)
GPT3: Please, follow me. And so they did.
Jurassic: The AIs followed them
GPT3: You did not engage
Jurassic: You did not engage
<script type="text/javascript" src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js" data-name="bmc-button" data-slug="dipeshpal" data-color="#FFDD00" data-emoji="" data-font="Cookie" data-text="Buy me a coffee" data-outline-color="#000000" data-font-color="#000000" data-coffee-color="#ffffff" ></script>
Found 200 files belonging to 2 classes.
Using 160 files for training.
2020-10-14 20:03:49.722610: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
2020-10-14 20:03:49.722866: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] failed call to cuInit: UNKNOWN ERROR (303)
2020-10-14 20:03:49.729797: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: Adonis-PC
2020-10-14 20:03:49.730065: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: Adonis-PC
2020-10-14 20:03:49.753847: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2020-10-14 20:03:50.029289: I tensorflow/compiler/xla/service/service.cc
import auto_face_recognition
obj = auto_face_recognition.AutoFaceRecognition()
obj.datasetcreate(haarcascade_path='haarcascade/haarcascade_frontalface_default.xml',
eyecascade_path='haarcascade/haarcascade_eye.xml',
class_name='Dipesh')
obj.face_recognition_train()
obj.predict_faces(class_name=['Dipesh', 'Jay'], color_mode=True)
import JarvisAI
import re
import pprint
import random
obj = JarvisAI.JarvisAssistant()
def t2s(text):
obj.text2speech(text)
pip install JarvisAI
@Dipeshpal
Dipeshpal / prediction-1.ipynb
Created July 22, 2020 05:50
prediction (1).ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Dipeshpal
Dipeshpal / pytorch model
Created July 22, 2020 04:32
attention pytorch model
class Encoder(nn.Module):
def __init__(self,
input_dim,
hid_dim,
n_layers,
n_heads,
pf_dim,
dropout,
device,
max_length = 100):
@Dipeshpal
Dipeshpal / untitled.ipynb
Created July 6, 2020 18:48
Untitled.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
img = read_img(img_path="6.jpg")
model = load_model('Unet_black_background_81.h5')
res = model.predict(img)