Skip to content

Commit ce006ef

Browse files
committedNov 14, 2024
docs: add texts and required links
1 parent 540ed64 commit ce006ef

21 files changed

+318
-0
lines changed
 

‎all-text.md

+222
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,222 @@
1+
## Useful Links
2+
3+
- To train Flux Dev LORA model: https://replicate.com/ostris/flux-dev-lora-trainer/train
4+
- Flux Dev Model: https://replicate.com/black-forest-labs/flux-dev
5+
- Flux Schnell Model: https://replicate.com/black-forest-labs/flux-schnell
6+
- For stock images: https://www.lummi.ai/
7+
8+
## Auth Page Quote
9+
10+
“Pictoria AI is a game changer for me. I have been able to generate high quality professional headshots within minutes. It has saved me countless hours of work and cost as well.”
11+
12+
David S.
13+
14+
## Model Training Note
15+
Training Data (Zip File) | Read the requirements below
16+
• Provide 10, 12 or 15 images in total
17+
• Ideal breakdown for 12 images:
18+
- 6 face closeups
19+
- 3/4 half body closeups (till stomach)
20+
- 2/3 full body shots
21+
• No accessories on face/head ideally
22+
• No other people in images
23+
• Different expressions, clothing, backgrounds with good lighting
24+
• Images to be in 1:1 resolution (1048x1048 or higher)
25+
• Use images of similar age group (ideally within past few months)
26+
• Provide only zip file (under 45MB size)
27+
28+
29+
# Landing Paeg
30+
31+
## Hero Section
32+
33+
- Transform Your Photos with the Power of AI
34+
- From LinkedIn headshots to Instagram influencer photos, Pictoria AI's state-of-the-art technology ensures you always look your best. Create, edit, and generate images effortlessly.
35+
36+
```javascript
37+
const avatars = [
38+
{
39+
src: "/avatars/AutumnTechFocus.jpeg",
40+
fallback: "CN",
41+
},
42+
{
43+
src: "/avatars/Casual Creative Professional.jpeg",
44+
fallback: "AB",
45+
},
46+
{
47+
src: "/avatars/Golden Hour Contemplation.jpeg",
48+
fallback: "FG",
49+
},
50+
{
51+
src: "/avatars/Portrait of a Woman in Rust-Colored Top.jpeg",
52+
fallback: "PW",
53+
},
54+
{
55+
src: "/avatars/Radiant Comfort.jpeg",
56+
fallback: "RC",
57+
},
58+
{
59+
src: "/avatars/Relaxed Bearded Man with Tattoo at Cozy Cafe.jpeg",
60+
fallback: "RB",
61+
},
62+
];
63+
64+
const Images = [
65+
{
66+
src: img1,
67+
alt: "AI generated image",
68+
},
69+
{
70+
src: img2,
71+
alt: "AI generated image",
72+
},
73+
{
74+
src: img3,
75+
alt: "AI generated image",
76+
},
77+
{
78+
src: img4,
79+
alt: "AI generated image",
80+
},
81+
{
82+
src: img5,
83+
alt: "AI generated image",
84+
},
85+
{
86+
src: img6,
87+
alt: "AI generated image",
88+
},
89+
{
90+
src: img7,
91+
alt: "AI generated image",
92+
},
93+
{
94+
src: img8,
95+
alt: "AI generated image",
96+
},
97+
{
98+
src: img9,
99+
alt: "AI generated image",
100+
},
101+
{
102+
src: img10,
103+
alt: "AI generated image",
104+
},
105+
{
106+
src: img11,
107+
alt: "AI generated image",
108+
},
109+
];
110+
```
111+
112+
## Features Section
113+
114+
- Unlock Unlimited Possibilities with Pictoria AI
115+
- Our platform offers a wide range of features designed to enhance your image creation experience. From easy-to-use editing tools to powerful AI-powered image generation, we have everything you need to bring your ideas to life.
116+
117+
- AI-Powered Photos
118+
Instantly transform your photos into high-quality, lifelike images with the power of AI. Whether you need fresh content for social media, professional shots for LinkedIn, or a fun set of images for personal project.
119+
120+
- Diverse Photo Packs at Your Fingertips
121+
Instantly transform your photos into high-quality, lifelike images with the power of AI. Whether you need fresh content for social media, professional shots for LinkedIn, or a fun set of images for personal project.
122+
123+
- Customizable Photo Generation
124+
Instantly transform your photos into high-quality, lifelike images with the power of AI. Whether you need fresh content for social media, professional shots for LinkedIn, or a fun set of images for personal project.
125+
126+
## Testimonials Section
127+
128+
- What Our Users Say
129+
- Discover why thousands are choosing Pictoria AI for effortless, high-quality photo generation, from LinkedIn headshots to vibrant social media content.
130+
131+
```javascript
132+
const reviews = [
133+
{
134+
name: "Jack Smith",
135+
username: "@jacksmith",
136+
body: "The dating profile photos I received transformed my online presence and boosted my matches significantly. Truly a game changer!",
137+
img: avatar1,
138+
},
139+
{
140+
name: "Jill Smith",
141+
username: "@jillsmith",
142+
body: "I was completely blown away by the results. This service exceeded all my expectations. Absolutely amazing!",
143+
img: avatar2,
144+
},
145+
{
146+
name: "John Doe",
147+
username: "@johndoe",
148+
body: "Using Photo AI for my LinkedIn profile was a fantastic decision. The quality was outstanding, and I got multiple job offers!",
149+
img: avatar3,
150+
},
151+
{
152+
name: "Jane Doe",
153+
username: "@janedoe",
154+
body: "Words can't express how thrilled I am with the results. This service is simply phenomenal. I love it!",
155+
img: avatar4,
156+
},
157+
{
158+
name: "Jenny Mandell",
159+
username: "@jennymandell",
160+
body: "I can't find the words to describe how impressed I am. This service is truly remarkable. I love it!",
161+
img: avatar5,
162+
},
163+
{
164+
name: "James Cameron",
165+
username: "@jamescameron",
166+
body: "I am genuinely amazed by the quality of the photos. This service is a game changer for anyone looking to enhance their profile!",
167+
img: avatar6,
168+
},
169+
];
170+
```
171+
172+
## Pricing Section
173+
174+
- Choose the Plan That Fits Your Needs
175+
- Choose an affordable plan that's packed with the best features for engaging your audience, creating customer loyalty, and driving sales.
176+
177+
- Hobby
178+
- Essentials to kickstart your AI image creation journey, perfect for exploring creativity.
179+
- 1 trained model
180+
- 100 images per month
181+
- Basic analytics
182+
- Community support
183+
- Creative resources
184+
185+
- Pro
186+
- A plan designed for artists and professionals to elevate their creative projects.
187+
- 2 trained models
188+
- 300 images per month
189+
- Advanced analytics
190+
- Priority support
191+
- Collaboration tools
192+
193+
- Enterprise
194+
- Tailored for businesses and advanced creators looking to make an impact.
195+
- 5 trained models
196+
- Unlimited images
197+
- In-depth analytics
198+
- 1-hour, dedicated support response time
199+
- Custom integrations
200+
201+
## FAQ Section
202+
203+
- Frequently Asked Questions
204+
- Here are some of the most frequently asked questions about our product.
205+
206+
```javascript
207+
const faqsList = [
208+
{question: "How does Pictoria AI work?", answer: "Pictoria AI uses advanced machine learning algorithms to analyze and understand your photos. It then generates new images based on your features and the scenarios you choose, creating realistic and personalized results."},
209+
{question: "Is my data safe with Pictoria AI?", answer: "Yes, we take data privacy very seriously. All uploaded photos and generated images are encrypted and stored securely. We never share your personal data or images with third parties without your explicit consent."},
210+
{question: "How many photos do I need to upload for best results?", answer: "For optimal results, we recommend uploading at least 10-20 diverse photos of yourself. This helps our AI model better understand your features and expressions, leading to more accurate and realistic generated images."},
211+
{question: "Can I use Pictoria AI for commercial purposes?", answer: "Yes, our Pro and Enterprise plans include commercial usage rights for the images you generate. However, please note that you should always respect copyright and privacy laws when using AI-generated images."},
212+
{question: "How often do you update the AI model?", answer: "We continuously work on improving our AI model. Major updates are typically released quarterly, with minor improvements and optimizations happening more frequently. All users benefit from these updates automatically."},
213+
{question: "What are the differences between the free and paid plans?", answer: "The free plan allows you to generate up to 5 images per day. The Pro plan includes unlimited image generation, higher resolution output, and access to additional features. The Enterprise plan is tailored for businesses and offers custom integrations and dedicated support."},
214+
]
215+
```
216+
217+
## CTA Section
218+
219+
- Ready to Transform Your Photos?
220+
- Join thousands of users who are already creating amazing AI-generated images.
221+
222+
226 KB
Loading

‎public/avatars/AutumnTechFocus.jpeg

275 KB
Loading
66.4 KB
Loading
56.8 KB
Loading
Loading

‎public/avatars/Radiant Comfort.jpeg

62.9 KB
Loading
Loading

‎public/dashboard-img.png

311 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading
237 KB
Loading
Loading
Loading
Loading
Loading

‎supabase-queries.md

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
## Models Table
2+
3+
```sql
4+
CREATE TABLE
5+
public.models (
6+
id BIGINT GENERATED ALWAYS AS IDENTITY NOT NULL,
7+
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
8+
user_id UUID NULL DEFAULT auth.uid (),
9+
model_id TEXT NULL DEFAULT ''::TEXT,
10+
model_name TEXT NULL DEFAULT ''::TEXT,
11+
trigger_word TEXT NULL DEFAULT ''::TEXT,
12+
VERSION TEXT NULL DEFAULT ''::TEXT,
13+
training_status public.training_status NULL,
14+
training_steps NUMERIC NULL DEFAULT '0'::NUMERIC,
15+
training_time TEXT NULL,
16+
gender public.gender NULL DEFAULT 'male'::gender,
17+
training_id TEXT NULL,
18+
CONSTRAINT models_pkey PRIMARY KEY (id),
19+
CONSTRAINT models_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth.users (id)
20+
) TABLESPACE pg_default;
21+
```
22+
23+
## Generated Images Table
24+
25+
```sql
26+
CREATE TABLE
27+
public.generated_images (
28+
id BIGINT GENERATED ALWAYS AS IDENTITY NOT NULL,
29+
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
30+
user_id UUID NULL DEFAULT auth.uid (),
31+
model TEXT NULL DEFAULT ''::TEXT,
32+
image_name TEXT NULL,
33+
prompt TEXT NULL,
34+
guidance NUMERIC NULL,
35+
num_inference_steps NUMERIC NULL,
36+
output_format TEXT NULL,
37+
WIDTH NUMERIC NULL,
38+
HEIGHT NUMERIC NULL,
39+
aspect_ratio TEXT NULL,
40+
CONSTRAINT generated_images_pkey PRIMARY KEY (id),
41+
CONSTRAINT generated_images_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth.users (id)
42+
) TABLESPACE pg_default;
43+
```
44+
45+
## Credits Table
46+
47+
```sql
48+
CREATE TABLE
49+
public.credits (
50+
id BIGINT GENERATED ALWAYS AS IDENTITY NOT NULL,
51+
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
52+
user_id UUID NULL DEFAULT auth.uid (),
53+
image_generation_count NUMERIC NULL DEFAULT '0'::NUMERIC,
54+
model_training_count NUMERIC NULL DEFAULT '0'::NUMERIC,
55+
max_image_generation_count NUMERIC NULL DEFAULT '0'::NUMERIC,
56+
max_model_training_count NUMERIC NULL DEFAULT '0'::NUMERIC,
57+
CONSTRAINT credits_pkey PRIMARY KEY (id),
58+
CONSTRAINT credits_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth.users (id) ON DELETE CASCADE
59+
) TABLESPACE pg_default;
60+
```
61+
62+
## Handle New User Function
63+
64+
```sql
65+
begin
66+
insert into
67+
public.users (id, full_name)
68+
values
69+
(new.id, new.raw_user_meta_data ->> 'full_name');
70+
-- Insert a new row into the credits table
71+
insert into
72+
public.credits (
73+
user_id,
74+
image_generation_count,
75+
model_training_count
76+
)
77+
values
78+
(new.id, 0, 0);
79+
80+
return new;
81+
82+
end;
83+
```
84+
85+
## Decrease Credits Function
86+
87+
```sql
88+
BEGIN
89+
-- Decrease the image_generation_count by 1 for the user_id in credits table
90+
UPDATE public.credits
91+
SET image_generation_count = image_generation_count - 1
92+
WHERE user_id = NEW.user_id;
93+
94+
RETURN NEW;
95+
END;
96+
```

0 commit comments

Comments
 (0)
Please sign in to comment.