ginipick commited on
Commit
5ea206a
·
verified ·
1 Parent(s): 184f802

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +97 -1
README.md CHANGED
@@ -10,4 +10,100 @@ pinned: false
10
  short_description: Officail 'Nano Banana + Upscale + Outpainting'
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  short_description: Officail 'Nano Banana + Upscale + Outpainting'
11
  ---
12
 
13
+ Nano Banana PRO
14
+ AI-Powered Image Style Transfer with Outpainting & Auto-Upscaling (4x)Overview
15
+ Nano Banana PRO is a Gradio-based web application that leverages the google/nano-banana model from Replicate API for image style transfer. Users can apply desired styles to uploaded images, optionally expand image boundaries (outpainting), and automatically perform 4x upscaling.Key Features
16
+ 1. Style Transfer
17
+
18
+ AI-powered style transfer with 1-2 uploaded images
19
+ Fine-grained style control via text prompts
20
+ Powered by google/nano-banana model
21
+ 2. Outpainting (Optional)
22
+
23
+ Image boundary expansion functionality
24
+ Multiple aspect ratio support (9:16, 16:9, 1:1, custom)
25
+ 5 alignment options (center, left, right, top, bottom)
26
+ Adjustable mask overlap ratio (1-50%)
27
+ Image resize options (full, 50%, 33%, 25%, custom)
28
+ 3. Auto Upscaling
29
+
30
+ Automatic Real-ESRGAN 4x upscaling for all generated images
31
+ High-quality image output guaranteed
32
+ 4. ZeroGPU Optimization
33
+
34
+ Optimized for Hugging Face Spaces ZeroGPU environment
35
+ Efficient GPU resource management
36
+ Memory management and timeout prevention logic
37
+ Tech Stack
38
+ Required Libraries
39
+
40
+ gradio: Web interface
41
+ spaces: Hugging Face Spaces GPU support
42
+ replicate: Replicate API client
43
+ Pillow (PIL): Image processing
44
+ requests: HTTP request handling
45
+ numpy: Numerical operations
46
+ Models Used
47
+
48
+ Main Model: google/nano-banana (style transfer)
49
+ Upscaling Model: nightmareai/real-esrgan (4x upscaling)
50
+ Usage
51
+ Basic Usage
52
+
53
+ Enter style description text
54
+ Upload 1-2 images
55
+ Click "Generate Magic with Auto-Upscale" button
56
+ View and download processed image
57
+ Outpainting Usage
58
+
59
+ Check "Enable Outpainting" checkbox
60
+ Enter outpaint prompt
61
+ Set target aspect ratio and size
62
+ Select alignment option
63
+ Preview with "Preview Outpaint Mask"
64
+ Click generate button
65
+ Limitations
66
+
67
+ Maximum processing time: 180 seconds (GPU duration)
68
+ Maximum image size: 2048x2048 pixels
69
+ Replicate API token required
70
+ Internet connection required (external API calls)
71
+ Error Handling
72
+ Main Error Responses
73
+
74
+ Timeout: Automatically returns original image
75
+ API Error: Retry logic applied
76
+ Memory Shortage: Automatic garbage collection
77
+ Upscaling Failure: Returns original generated image
78
+ Performance Optimization
79
+
80
+ Reduced processing time with automatic image resizing
81
+ Improved memory efficiency with timely intermediate variable deletion
82
+ Network stability through retry logic
83
+ Duration settings optimized for ZeroGPU environment
84
+ License & Credits
85
+
86
+ google/nano-banana model
87
+ nightmareai/real-esrgan model
88
+ Hugging Face Spaces infrastructure
89
+
90
+ AI Image Processing
91
+ #AIImageGeneration #ImageStyleTransfer #AIArt #TextToImage #ImageToImage #AIImageProcessing #GenerativeAI #DeepLearning #MachineLearning #ComputerVision #NeuralStyleTransfer #AIImageEnhancement
92
+ Tech Stack
93
+ #Gradio #GradioApp #HuggingFace #HuggingFaceSpaces #ReplicateAPI #Python #WebApplication #ZeroGPU #GPUComputing #CloudComputing #AIDeployment #MLOps
94
+ Image Editing Features
95
+ #Outpainting #ImageExpansion #ImageUpscaling #RealESRGAN #SuperResolution #4xUpscaling #ImageEnhancement #ImageQuality #HDImage #ImageRestoration #ImageResizing #AspectRatio
96
+ Models & Frameworks
97
+ #NanoBanana #GoogleAI #ESRGAN #DiffusionModels #ImageDiffusion #StableDiffusion #AIModels #PretrainedModels #TransferLearning #FineTuning
98
+ User Experience
99
+ #NoCode #LowCode #UserFriendly #WebUI #DragAndDrop #RealTimeProcessing #InstantResults #AutoProcessing #BatchProcessing #ImageOptimization
100
+ Developer Related
101
+ #OpenSource #APIIntegration #PythonDevelopment #WebDevelopment #FullStack #FrontEnd #BackEnd #CloudNative #Serverless #Microservices
102
+ Industry Applications
103
+ #CreativeTools #DesignAutomation #ContentCreation #DigitalArt #PhotoEditing #GraphicDesign #MediaProduction #VisualEffects #ImageManipulation #CreativeAI
104
+ Community & Platforms
105
+ #HuggingFaceCommunity #AIcommunity #OpenAI #MLCommunity #DataScience #ArtificialIntelligence #TechInnovation #AITools #ProductivityTools #CreativeTechnology
106
+ Performance & Optimization
107
+ #PerformanceOptimization #MemoryManagement #GPUOptimization #LowLatency #HighPerformance #Scalable #Efficient #FastProcessing #ResourceOptimization #CostEffective
108
+ Trends & Innovation
109
+ #AI2024 #AI2025 #FutureOfAI #Innovation #TechTrends #DigitalTransformation #AIRevolution #NextGenAI #CuttingEdge #EmergingTech #AIApplications