Ubuntu 22.04 add wireguad config file to network manager.
nmcli connection import type wireguard file YourConfigFile.conf
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Baby Pygmy Hippopotamus Game</title> | |
<style> | |
body { margin: 0; overflow: hidden; } | |
canvas { display: block; } | |
#score { | |
position: absolute; |
Ubuntu 22.04 add wireguad config file to network manager.
nmcli connection import type wireguard file YourConfigFile.conf
""" | |
pip install ultralytics pyvirtualcam | |
Enable virtual camera on Linux: | |
modprobe v4l2loopback devices=1 max_buffers=2 exclusive_caps=1 card_label="VirtualCam" | |
# Remove v4l2 | |
modprobe -r v4l2loopback | |
""" |
cloudflared tunnel --url localhost:8000
import tensorflow.compat.v2 as tf | |
import tensorflow_datasets as tfds | |
tf.enable_v2_behavior() | |
(ds_train, ds_test), ds_info = tfds.load( | |
'mnist', | |
split=['train', 'test'], | |
shuffle_files=True, | |
as_supervised=True, |
# pip install -U selenium | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
chrome_options = Options() | |
chrome_options.add_argument("--disable-extensions") | |
chrome_options.add_argument("--window-size=1920,1080") | |
#chrome_options.add_argument("--disable-gpu") | |
#chrome_options.add_argument("--no-sandbox") # linux only |
from tqdm.autonotebook import tqdm | |
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor, wait, as_completed | |
import multiprocessing | |
import time | |
def run_multiple_process(func, params=[], num_cpu=None, verbose=True): | |
start_time = time.time() |
If you install correct Tensorflow, cuDNN and CUDA Toolkit version and got this error message.
Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
Try to Add this code below before import your tensorflow