
- Main
- Catalog
- Computer science
- Advertising on the Telegram channel «Generative AI»
Advertising on the Telegram channel «Generative AI»
✅ Welcome to Official Generative AI
👨💻 Join us to understand and use the tech
👩💻 Learn how to use Open AI & Chatgpt
🤖 The REAL No.1 AI Community
Channel statistics
import torch
import torch.nn as nn
import torch.optim as optim
from torchvision import datasets, transforms
{}
Step 2: Generator
class Generator(nn.Module):
def __init__(self):
super().__init__()
self.model = nn.Sequential(
nn.Linear(100, 256),
nn.ReLU(),
nn.Linear(256, 784),
nn.Tanh()
)
def forward(self, x):
return self.model(x)
{}
Noise (100) → Fake image (784 pixels)
Step 3: Discriminator
class Discriminator(nn.Module):
def __init__(self):
super().__init__()
self.model = nn.Sequential(
nn.Linear(784, 256),
nn.LeakyReLU(0.2),
nn.Linear(256, 1),
nn.Sigmoid()
)
def forward(self, x):
return self.model(x)
{}
Image → Probability (Real/Fake)
Step 4: Training Setup
generator = Generator()
discriminator = Discriminator()
criterion = nn.BCELoss()
g_optimizer = optim.Adam(generator.parameters(), lr=0.0002)
d_optimizer = optim.Adam(discriminator.parameters(), lr=0.0002)
{}
Step 5: Training Loop (Core Logic)
for epoch in range(epochs):
for real_images, _ in dataloader:
# Train Discriminator
noise = torch.randn(real_images.size(0), 100)
fake_images = generator(noise)
real_loss = criterion(discriminator(real_images.view(-1, 784)), torch.ones(real_images.size(0), 1))
fake_loss = criterion(discriminator(fake_images.detach()), torch.zeros(real_images.size(0), 1))
d_loss = real_loss + fake_loss
d_optimizer.zero_grad()
d_loss.backward()
d_optimizer.step()
# Train Generator
g_loss = criterion(discriminator(fake_images), torch.ones(real_images.size(0), 1))
g_optimizer.zero_grad()
g_loss.backward()
g_optimizer.step()
{}
This is the heart of GAN training.
4️⃣ Same Idea in TensorFlow / Keras (Simplified)
generator = tf.keras.Sequential([
Dense(256, activation='relu', input_shape=(100,)),
Dense(784, activation='tanh')
])
discriminator = tf.keras.Sequential([
Dense(256, activation='relu', input_shape=(784,)),
Dense(1, activation='sigmoid')
])
{}
Training logic stays the same conceptually.
5️⃣ What Beginners Must Understand (Important)
• Generator never sees real labels
• Discriminator trains on real + fake
• GAN loss is adversarial, not accuracy
• Training is unstable by nature
👉 If images collapse → learning rate issue
👉 If generator repeats outputs → mode collapse
🧠 Mini Task
• Train GAN on MNIST
• Save generated images every 5 epochs
• Observe improvement from noise → digits
💬 Tap ❤️ for more!
from keras.models import Model
from keras.layers import Input, Dense
# Encoder
input_data = Input(shape=(784,))
encoded = Dense(32, activation='relu')(input_data)
# Decoder
decoded = Dense(784, activation='sigmoid')(encoded)
# Autoencoder model
autoencoder = Model(input_data, decoded)
autoencoder.compile(optimizer='adam', loss='binary_crossentropy'){}
5️⃣ Types of Autoencoders:
• Denoising Autoencoder – Learns to remove noise
• Sparse Autoencoder – Adds sparsity to improve feature learning
• Variational Autoencoder (VAE) – Introduces randomness, useful in image generation
6️⃣ Applications in Generative AI:
• VAEs generate realistic images/text
• Used in AI art, medical imaging, face generation
• Often paired with GANs or diffusion models for advanced output
🧠 Mini Task:
• Try a Google Colab autoencoder demo
• Upload a noisy image and observe how the autoencoder cleans it
💬 Tap ❤️ for more!Reviews channel
4 total reviews
- Added: Newest first
- Added: Oldest first
- Rating: High to low
- Rating: Low to high
Catalog of Telegram Channels for Native Placements
Advertising on the Telegram channel «Generative AI» is a Telegram channel in the category «Интернет технологии», offering effective formats for placing advertising posts on TG. The channel has 28.2K subscribers and provides quality content. The advertising posts on the channel help brands attract audience attention and increase reach. The channel's rating is 18.3, with 4 reviews and an average score of 5.0.
You can launch an advertising campaign through the Telega.in service, choosing a convenient format for placement. The Platform provides transparent cooperation conditions and offers detailed analytics. The placement cost is 4.8 ₽, and with 16 completed requests, the channel has established itself as a reliable partner for advertising on Telegram. Place integrations today and attract new clients!
You will be able to add channels from the catalog to the cart again.
Комментарий