Skip to content

Instantly share code, notes, and snippets.

View RageshAntonyHM's full-sized avatar

RageshAntonyHM

View GitHub Profile
@RageshAntonyHM
RageshAntonyHM / 01_prompts.txt
Last active April 11, 2025 11:13
high school and Lake using THREE.js
1) using THREE.js create a High School cafeteria. All models should be complex and perfect and should be created using THREE.js itself without using external models.
2) using THREE.js create a forest scence with a lake and a cave nearby. All models should be complex and perfect and should be created using THREE.js itself without using external models.
@RageshAntonyHM
RageshAntonyHM / forest.html
Created April 10, 2025 18:19
THREE.js forest
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>THREE.js Forest Lake Cave Scene</title>
<style>
body { margin: 0; overflow: hidden; background-color: #87CEEB; } /* Sky blue background */
canvas { display: block; }
</style>
@RageshAntonyHM
RageshAntonyHM / naldi_scrap.py
Last active February 14, 2025 08:00
Tamil Scrapper
import json
import requests
from bs4 import BeautifulSoup
from collections import OrderedDict
def get_naaladiyar_data(page_num):
"""
Given an integer page_num (1..40), build the URL, scrape, and return:
section, sub_section, title, results
where results is a list of:
@RageshAntonyHM
RageshAntonyHM / mutli-gen-huggging.py
Created December 29, 2024 16:54
mutli-gen-huggging.py
import gradio as gr
import numpy as np
import random
import torch
from diffusers import (
DiffusionPipeline, FluxPipeline, PixArtSigmaPipeline,
AuraFlowPipeline, Kandinsky3Pipeline, HunyuanDiTPipeline,
LuminaText2ImgPipeline
)
import spaces
@RageshAntonyHM
RageshAntonyHM / mutli-gen.py
Last active December 23, 2024 18:44
Multi-Model implementation of ImageGen via single prompt using Multi GPUs
import torch
from diffusers import SanaPipeline,StableDiffusion3Pipeline, FluxPipeline,Transformer2DModel, PixArtSigmaPipeline, AuraFlowPipeline, Kandinsky3Pipeline, LuminaText2ImgPipeline, HunyuanDiTPipeline, LuminaText2ImgPipeline
from app.sana_pipeline import SanaPipeline
from torchvision.utils import save_image
from models import SwittiPipeline
from onediffusion.diffusion.pipelines.onediffusion import OneDiffusionPipeline
# FLUX, SD, Aura, Hunay, Sana, Pix Sigma,
master_prompt = "A serene and emotive scene depicting a college girl weeping under a large, lush tree, with her loyal dog sitting close by, offering comfort. In the background, a small camp is situated , illuminated by the gentle glow of a campfire around which several people are gathered, sitting on benches and engaging in quiet conversation. The setting is in a forest clearing, during twilight, with the sky painted in soft shades of pink and blue, creating a tranquil yet poignant atmosphere,"
@RageshAntonyHM
RageshAntonyHM / sd3 flux all.json
Created November 20, 2024 10:01
SD 3.5 Large + Flux Dev Combined
{
"last_node_id": 90,
"last_link_id": 143,
"nodes": [
{
"id": 56,
"type": "BasicGuider",
"pos": {
"0": 1450,
"1": 1030
@RageshAntonyHM
RageshAntonyHM / dedr_1_sample.json
Last active September 11, 2024 17:02
DEDR Scarping sample
{
"DEDR": 1,
"PDr.": [
{
"words": "*a-mpV",
"defs": "there"
},
{
"words": "*a-n(V)k- ∼ ā-n(V)k/-t- ∼ -tt-",
"defs": "that place/time/much/many/ manner"
This file has been truncated, but you can view the full file.
rageshantonyd@Administrators-MacBook-Pro library % sh prepare_libs.sh
+ rustup target add aarch64-linux-android
info: component 'rust-std' for target 'aarch64-linux-android' is up to date
+ mkdir -p build/model_lib
+ python3 prepare_model_lib.py
Creating lib from ['/Users/rageshantonyd/Documents/working_prj/mlc-llm/dist/libs/Llama-2-7b-chat-hf-q4f16_1-android.tar', '/Users/rageshantonyd/Documents/working_prj/mlc-llm/dist/libs/RedPajama-INCITE-Chat-3B-v1-q4f16_1-android.tar', '/Users/rageshantonyd/Documents/working_prj/mlc-llm/dist/libs/phi-2-q4f16_1-android.tar', '/Users/rageshantonyd/Documents/working_prj/mlc-llm/dist/libs/Mistral-7B-Instruct-v0.2-q4f16_1-android.tar']..
+ cd build
+ touch config.cmake
+ '[' 0 -ne 0 ']'