TGViewer
Channel Public Channel
پایتون | Data Science | Machine Learning

پایتون | Data Science | Machine Learning

@python4all_pro

◀️اینجا با تمرین و چالش با هم پایتون رو یاد می گیریم

⏮بانک اطلاعاتی پایتون
پروژه / code/ cheat sheet
+ویدیوهای آموزشی

+کتابهای پایتون
تبلیغات:
@alloadv

🔁ادمین :
@maryam3771
Subscribers
24.3K
Photos
634
Videos
81
Links
500

Showing posts older than #1415 · Back to latest

Older Posts 18 shown
Post #1412 2.68K
Python Program to Check Whether a Given Number is Even or Odd using Recursion


🆔 @Python4all_pro
Post #1411 2.91K
یک فانکشن کاربردی برای پاک‌سازی کامل RAM سیستم و GPU VRAM از آبجکت‌هایی که در ادامه‌ی کد بهشون نیازی ندارین و مشاهده‌ی فضای اشغال‌شده‌ی GPU.

import gc
import time


def clear_memory():
# Delete variables if they exist in the current global scope
if "inputs" in globals():
del globals()["inputs"]
if "model" in globals():
del globals()["model"]
if "processor" in globals():
del globals()["processor"]
if "trainer" in globals():
del globals()["trainer"]
if "peft_model" in globals():
del globals()["peft_model"]
if "bnb_config" in globals():
del globals()["bnb_config"]
time.sleep(2)

# Garbage collection and clearing CUDA memory
gc.collect()
time.sleep(2)
torch.cuda.empty_cache()
torch.cuda.synchronize()
time.sleep(2)
gc.collect()
time.sleep(2)

print(f"GPU allocated memory: {torch.cuda.memory_allocated() / 1024**3:.2f} GB")
print(f"GPU reserved memory: {torch.cuda.memory_reserved() / 1024**3:.2f} GB")


clear_memory()



🆔 @Python4all_pro
  • 👍 8
  • ❤ 2
Post #1397 2.8K
A python tool that uses GPT-4, FFmpeg, and OpenCV to automatically analyze videos, extract the most interesting sections, and crop them for an improved viewing experience.

Helps you generate YouTube Shorts from long videos by leveraging Whisper for transcription and GPT-4 for highlight extraction and vertical cropping.

What it offers:

→ Downloads videos directly from YouTube URLs.

→ Transcribes video content using Whisper for accurate text representation.

→ Extracts engaging highlights from transcriptions using GPT-4, identifying key moments.

→ Detects speakers within the video content.

→ Crops video highlights vertically, optimizing them for YouTube Shorts format.

https://github. com/SamurAIGPT/AI-Youtube-Shorts-Generator



🆔 @Python4all_pro
  • ❤ 1
Post #1395 2.54K
Automatically Generate Image CAPTCHAs with Python for Enhanced Security



#Python #DataScience
#MachineLearning #AI


🆔 @Python4all_pro
  • ❤ 2
  • 🔥 1
Post #1393 2.58K
برای آشنایی با الگوریتم های ساده و پیچیده پایتون این ریپو را ببینید هر الگوریتمی بخواهید اینجا هست

https://github.com/TheAlgorithms/Python


#Python #DataScience
#MachineLearning #AI


🆔 @Python4all_pro
GitHub GitHub - TheAlgorithms/Python: All Algorithms implemented in Python All Algorithms implemented in Python. Contribute to TheAlgorithms/Python development by creating an account on GitHub.
  • 👍 4
Post #1384 2.54K
Download a File


#Python #DataScience
#MachineLearning #AI


🆔 @Python4all_pro
  • 👍 6
  • ❤ 1
Post #1382 2.59K
Auto copy paste using Python

#Python #DataScience
#MachineLearning #AI


🆔 @Python4all_pro
Post #1373 2.33K
🖥 NocoDB

NoCodb is a database without an open source with an open source, which turns any relational database (MySQL, PostgreSQL, SQLITE, MSSQL, etc.) into a flexible table similar to airtable!

🌟 It allows users to manage data using a convenient web interface, create a REST API, configure representations (tables, calendars, kanban dosks) and integrate with external services.

🔐 License: AGPL-3.0


🖥 Github

#علم_داده
🆔 @Python4all_pro
Post #1370 2.26K
Learn how to secure your Wi-Fi like a pro with Python! This script helps you list connected devices, change your Wi-Fi password, and block unwanted devices using their MAC addresses.


#پایتون #python
🆔 @Python4all_pro
  • 🔥 2
  • 👍 1
Post #1367 2.22K
🖥 DrawDB

DRAWDB is a database management system focused on visualization and data modeling!

🌟 It allows users to create databases using a graphic interface, which makes the design and interaction process more intuitively understandable. DRAWDB can be useful for developers who need to quickly create or visualize the structure of the database without in -depth knowledge #SQL.



🖥 Github




#پایتون #علم_داده
🆔 @Python4all_pro
  • 👍 1
Older posts →
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →