ch
Feedback
TrickyAbhi 🇮🇳

TrickyAbhi 🇮🇳

前往频道在 Telegram

Wᴇʟᴄᴏᴍᴇ Tᴏ Tricky Abhi Bᴏᴛᴢ Uᴘᴅᴀᴛᴇ ✨ Yᴏᴜ Tᴜʙᴇ Cʜᴀɴɴᴇʟ : https://Youtube.com/@TrickyAbhii ➥A Oʀɢᴀɴɪᴢᴀᴛɪᴏɴ Mᴀᴋɪɴɢ Tᴇʟᴇɢʀᴀᴍ Bᴏᴛs Aɴᴅ Oᴘᴇɴ-Sᴏᴜʀᴄᴇ Pʀᴏᴊᴇᴄᴛs Wɪᴛʜ Pʏᴛʜᴏɴ. Mᴀᴅᴇ ɪɴ Iɴᴅɪᴀ 🇮🇳 Dɪsᴄᴜssɪᴏɴ Gʀᴏᴜᴘ : @TeamTrickyAbhi Aɴʏ Pʀᴏʙʟᴇᴍ : @HeyAnneX

显示更多
2025 年数字统计snowflakes fon
card fon
132 588
订阅者
-9824 小时
-8017
-2 55030
帖子存档
I Am Providing A Free Member Adding Script On This Channel Join : https://t.me/TrickyAbhiXYZ Complete 1,000 Member
显示全部...
TG Acc Available @heyannex
显示全部...
照片不可用在 Telegram 中显示
Telegram Lastest Member Adding Script 2025 ⚡️ | Add Unlimited Member In Telegram Group 🔥 Using PLV7 Script - TrickyAbhi 2.0 🚀 ➤Video Link : https://youtu.be/m9-SlALAaRchttps://youtube.com/@trickyabhii?si=7OuXCQeKFUWZw6Oa ➤Video Link : https://youtu.be/m9-SlALAaRchttps://youtube.com/@trickyabhii?si=7OuXCQeKFUWZw6Oa Dm Me For Get Script - @HeyAnnex ------------------------------------------------------------------------------------ Thanks For Watching This Video Please Like Share And Subscribe My YouTube Channel 💙
显示全部...
🥰 302👍 294🤩 292👏 291🎉 289🔥 288 267🤔 2 1🤯 1🗿 1
from diffusers import StableDiffusionImg2ImgPipeline
import torch
from PIL import Image
import io
from google.colab import files
import matplotlib.pyplot as plt
import time

# Load model function
def load_model():
    model_id = "nitrosocke/Ghibli-Diffusion"  # Correct model ID
    dtype = torch.float16 if torch.cuda.is_available() else torch.float32
    print("Loading model...")
    pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model_id, torch_dtype=dtype)
    pipe.to("cuda" if torch.cuda.is_available() else "cpu")
    pipe.enable_attention_slicing()  # Optimize memory usage
    print("Model loaded!")
    return pipe

# Function to generate Ghibli-style image
def generate_ghibli_image(image, pipe, strength):
    image = image.convert("RGB")
    image = image.resize((512, 512))  # Ensure proper size
    
    prompt = "Ghibli-style anime painting, soft pastel colors, highly detailed, masterpiece"
    
    print("Generating image...")
    start_time = time.time()
    result = pipe(prompt=prompt, image=image, strength=strength).images[0]
    print(f"Image generated in {time.time() - start_time:.2f} seconds!")
    return result

# Check for GPU
gpu_info = "GPU is available!" if torch.cuda.is_available() else "Warning: GPU not available. Processing will be slow."
print(gpu_info)

# Load the model
pipe = load_model()

# Upload image section
print("Please upload your image file:")
uploaded = files.upload()

if uploaded:
    file_name = list(uploaded.keys())[0]
    image = Image.open(io.BytesIO(uploaded[file_name]))
    
    # Display original image
    plt.figure(figsize=(5, 5))
    plt.imshow(image)
    plt.title("Original Image")
    plt.axis('off')
    plt.show()
    
    # Ask for strength input with error handling
    while True:
        try:
            strength = float(input("Enter stylization strength (0.3-0.8, recommended 0.6): "))
            strength = max(0.3, min(0.8, strength))  # Clamp between 0.3 and 0.8
            break
        except ValueError:
            print("Invalid input. Please enter a number between 0.3 and 0.8.")
    
    # Generate and display the result
    result_img = generate_ghibli_image(image, pipe, strength)
    
    plt.figure(figsize=(5, 5))
    plt.imshow(result_img)
    plt.title("Ghibli Portrait")
    plt.axis('off')
    plt.show()
    
    # Save the output image and offer download
    output_filename = f"ghibli_portrait_{file_name}"
    result_img.save(output_filename)
    files.download(output_filename)
    print(f"Image saved as {output_filename} and download initiated!")
else:
    print("No file was uploaded. Please run the cell again and upload an image.")
🚀 How to Generate Ghibli Images Using your Python Code? 🍵 Even You can make your own API 🌟 Just open below link in Chrome https://colab.research.google.com/ (They provide platform to run python code.) 🌶️ Click + New Notebook (Once click open window like below). 🎖️ Put Above code in “Start coding or generate with ai” & put below code. 🍒 Once you add code and click on run icon. It’s take 2 second for run 🧿 Wait untill upload your inage box appears. 💮 After Appears Choose file. 😱 Wait 1 to 2 minute. Your image ready & download automatic. 🍒 Generate Unlimited Ghibli Images for Free 🤫. 🕐 This post will be deleted in 3 hours.
显示全部...
👏 452🔥 444🎉 439 435👍 428🥰 416🤯 2 1🤔 1💯 1🗿 1
Dm Me For Banning Script @heyAnnex
显示全部...
Dm Me For Telegram Session And TG Prime Adder Script @HeyAnnex
显示全部...
Dm Me For TG Prime Adder Script @HeyAnnex
显示全部...
Session Available @HeyAnnex
显示全部...
Any Guy Want PLV7 Script Dm Me @HeyAnnex
显示全部...
➤ So Guy's We Are Launching PLV7 New Latest Member Adding Script Within Few Days ❤️ ➤ Hidden Scraper ➤Private Scraper ➤ Per ID - 10 - 20 Member [ For Indian Member] ➤ Forginers Member Easily Add Per ID 50 Member ➤ You Can Scrap Private Member Without Link ------------------------------------------------------------------------------------ ~ TrickyAbhi 2.0 ⚡️
显示全部...
1.60 MB
🤩 171🎉 160👍 153🔥 138👏 137🥰 136 132😐 2
Dm Me For TG Prime Adder @HeyAnnex
显示全部...
Dm Me For TG Prime Adder Script And PLV7 Script @HeyAnnex
显示全部...
照片不可用在 Telegram 中显示
How To Make Telegram Music Bot ⚡ | How To Create Telegram Music Bot Without Deploy | Music Bot 🔥 ➤Video Link : https://youtu.be/kEcEY02wQMkVideo Link : https://youtu.be/kEcEY02wQMk Bot father : @BotFather ------------------------------------------------------------------------------------ Thanks For Watching This Video Please Like Share And Subscribe My YouTube Channel 💙
显示全部...
👏 165🎉 149 148👍 143🥰 140🤩 136🔥 135 1🤔 1🕊 1🌭 1
PLV7 Script Avilable For Sell @HeyAnnex
显示全部...
Dm Me For PLV7 Script @HeyAnnex
显示全部...
Dm Me For TG Prime Adder Activation And Session @HeyAnnex
显示全部...
TG Prime Adder And Session Avilable @HeyAnnex
显示全部...
Group To Group Member Adding Avilable @HeyAnnex
显示全部...
Dm Me For TG Prime Adder Activation @HeyAnnex
显示全部...
Group To Group Member Adding Avilable @HeyAnnex
显示全部...