You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Valérien
brayevalerien
AI Engineer, specialized in image generation. Passionate about statistics and deep learning.
A Monokai Pro (Classic Filter) theme for Gradio apps, easy to edit and use.
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
Tiny CLI for calling the Magnific creative upscaler from the Freepik API. Upscale images from your terminal in a matter of minutes!
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
Search and replace text in all text files within a directory (recursively). Usage: python search_replace.py <directory> <search_text> <replace_text>
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
Example of single-turn tool call with a Groq client. In this example, the LLM can run python expressions. Requires the "GROQ_API_KEY" to be set in the environement or in a .env file.
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
Helper function for downloading and uploading files to S3 using boto3. Assumes AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are set in the environment.
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
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
A guide to making a bluetooth headset work on a fresh Manjaro i3 community build.
Setting up a bluetooth headset on Manjaro i3
This document is a step by step guide for setting up a bluetooth heaset with working audio on a fresh Manjaro i3 community build. It's assumed that all the following is done in sudo mode.
Note
The following guide serves mostly as notes for the future me that has to set this up again, it might not work for your exact setup. Feel free to request corrections. It's also quite likely that this works on most Arch builds.
Reference resolutions for most image and video generations AI models.
Resolution guide for image and video generation
Caution
This is very much a WIP. Not all models or resolutions are listed yet, and there are placeholder "TODO" scattered in the document. It will be updated as soon as possible.
Introduction
This documents serves as a reference cheatsheet for choosing the right resolution for the most common image and video generation AI models.
While most visual generation models support any resolution in theory, their training procedure constrains the resolution of generated images / videos to certain values only. They are the resolutions the models were trained on and that are natively supported, meaning the generation quality will be optimal.
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