Media is too big
VIEW IN TELEGRAM
If you love tools that save time, money, and nerves β this is 100% for you.
This is an open-source panel on Python + Streamlit, packed with a whole arsenal of useful automations.
You open it β and itβs like gaining a superpower: doing everything faster.
What it can do:
π News Reader β reads out current news.
And thatβs just part of the list.
Why do you need this?
git clone https://github.com/Ai-Quill/automated.git
cd automated
pip install -r requirements.txt
streamlit run app.py
http://localhost:8501And enjoy the panel where all tools are just one click away.
#python #soft #github
https://t.me/DataScienceN
Please open Telegram to view this post
VIEW IN TELEGRAM
β€4
Do you want an LLM on your computer: to work offline, not leak data, and seamlessly integrate into a bot? Then let's take DeepSeek Coder and get started!
pip install -U transformers accelerate torch
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "deepseek-ai/deepseek-coder-6.7b-base"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_name,
trust_remote_code=True,
torch_dtype=torch.float16, # if the GPU supports fp16
device_map="auto" # if there's a GPU β it will use it
)
model.eval()
prompt = "Write a Telegram feedback bot on aiogram"
inputs = tokenizer(prompt, return_tensors="pt")
device = next(model.parameters()).device
inputs = {k: v.to(device) for k, v in inputs.items()}
with torch.inference_mode():
outputs = model.generate(
**inputs,
max_new_tokens=180,
do_sample=True, # IMPORTANT: otherwise the temperature doesn't affect
temperature=0.7,
top_p=0.9
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
β works locally (after downloading the weights);
β easily integrates into Telegram/Discord/CLI;
β can be accelerated on the GPU via device_map="auto".
If memory is limited β there are quantized versions (4bit/8bit) and GGUF.
#python #soft #code
Please open Telegram to view this post
VIEW IN TELEGRAM
β€1
Forwarded from Machine Learning with Python
SVFR β a full-fledged framework for restoring faces in videos.
It can:
Essentially, the model takes old or damaged videos and makes them "as if they were shot yesterday". And it's free and open-source.
1. Create an environment
conda create -n svfr python=3.9 -y
conda activate svfr
2. Install PyTorch (for your CUDA)
pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2
3. Install dependencies
pip install -r requirements.txt
4. Download models
conda install git-lfs
git lfs install
git clone https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt models/stable-video-diffusion-img2vid-xt
5. Start processing videos
python infer.py \
--config config/infer.yaml \
--task_ids 0 \
--input_path input.mp4 \
--output_dir results/ \
--crop_face_region
Where task_ids:
*
0 β face enhancement*
1 β colorization*
2 β redrawing damageAn ideal tool if:
#python #soft #github
https://t.me/CodeProgrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€1