This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Global DLSS update script by emoose - https://gist.github.com/emoose/11271bbb3b42fb3b1b0e1c83eef47c05 | |
# Allows setting up driver to use a single global DLSS DLL for majority of DLSS2/3 games | |
# If the global version is newer than the one included with game, it should get loaded automatically | |
# (how this works: https://forums.guru3d.com/threads/.439761/page-143#post-6221767) | |
# | |
# Almost all DLSS3 games should work, DLSS2 is hit-and-miss | |
# (DLSS2 games with customized appid probably won't work, thanks to some pointless nvngx checks) | |
# DLSSD/DLSSG should work fine with nearly all games (re-run the script for each DLL you want to update) | |
# | |
# Usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests as r | |
import json | |
from pprint import pprint | |
# Images | |
dir = 'https://github.com/ultralytics/yolov5/raw/master/data/images/' | |
imgs = [dir + f for f in ('zidane.jpg', 'bus.jpg')] # batched list of images | |
# Send images to endpoint | |
res = r.post("http://localhost:9999/inference", data=json.dumps({'img_list': imgs})) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, jsonify, request, make_response | |
from flask.ext.httpauth import HTTPBasicAuth | |
from flask_sqlalchemy import SQLAlchemy | |
from flask import render_template, redirect, url_for | |
from sqlalchemy import UniqueConstraint, exc | |
app = Flask(__name__) | |
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///memes.db' | |
app.config['SECRET_KEY'] = 'HALO' |