update
This commit is contained in:
parent
7a2e549a8c
commit
b168bcf220
3 changed files with 99 additions and 4 deletions
95
Profiles/example/config.json
Normal file
95
Profiles/example/config.json
Normal file
|
@ -0,0 +1,95 @@
|
|||
{
|
||||
"name": "This presently does not do anything except tell the AI the name of the toon it is LARPing as",
|
||||
"ig_name": "CHANGE ME! Instagram username goes here",
|
||||
"ig_bio": "CHANGE ME! This should match the Instagram account bio, and informs AI features for profile consistency",
|
||||
"age": "This presently provides only minor context for the AI",
|
||||
"gender": "F - This presently only provides minor context for the AI",
|
||||
"aesthetic": "vsco girl, boho chic, vintage - this presently provides only minor context for the AI",
|
||||
"dailyposts": "8 - but this does not yet affect anything",
|
||||
"ig_pass": "CHANGE ME! Instagram password goes here.",
|
||||
"ig_2fa_secret": "CHANGE ME! Instagram 2FA secret goes here.",
|
||||
"openai_key": "CHANGE ME! OpenAI API key goes here.",
|
||||
"ghost_admin_api_key": "CHANGE ME! Ghost API key goes here.",
|
||||
"ghost_admin_url": "CHANGE ME! Ghost admin url goes here - it should resemble https://myghostblog.com/ghost/api/admin",
|
||||
"ghost_content_key": "CHANGE ME! Ghost content key goes here.",
|
||||
"img_comment_sys": "You are a friendly AI assistant, who generates comments to post on Instagram accounts. Below is information about who you will be posting as. Your primary directive is to be authentic, and stay in character.",
|
||||
"img_description_sys": "You are a creative AI, crafting engaging and vivid social media captions for images based on images or descriptions of images provided to you. Stay true to the personality described, and strive for an authentic social post with each one. Only output one caption per image, and do not include anything else in your response.",
|
||||
"img_prompt_sys": "You are a helpful AI who assists in generating prompts that will be used to generate highly realistic images. Always use the most visually descriptive terms possible, and avoid any vague or abstract concepts. Do not include any words or descriptions based on other senses or emotions. Strive to show rather than tell. Space is limited, so be efficient with your words.",
|
||||
"posts": {
|
||||
"selfie": {
|
||||
"API_NPrompt": "FastNegativeV2, epiCNegative, (bad-hands-5-1:0.5), (easynegative:0.5) (verybadimagenegative_v1.3:1.3), asian, UnrealisticDream, (heavy makeup), boring_e621_v4, (distorted face), canvas frame, cartoon, 3d, ((bad art)), ((deformed)),((extra limbs)), ((b&w)), blurry, (((duplicate))), ((morbid)), ((mutilated)), [out of frame], extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))), out of frame, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), mutated hands, (fused fingers), (too many fingers), (((long neck))), Photoshop, video game, anime, cartoon, fake, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, mutation, mutated, extra limbs, extra legs, extra arms, disfigured, deformed, cross-eye, body out of frame, bad art, bad anatomy, 3d render, (nsfw), ((nude)), ((topless))",
|
||||
"API_PPrompt": "Selfie of a hot thin blonde German teen girl model, ",
|
||||
"API_SPrompt": "; (beautiful lighting:1), elegant, ((pensive)), subdued, ((mysterious)) smile, skinny, waif, bohemian, fine detail, extremely sharp, 8k, skin pores, lens flare, bokeh, shadows, insane detail, dynamic lighting, cinematic, shadows, model, dark, austere, earth hues, muted palette, attractive girl, vsco girl, boho chic, hipster, wide-angle, best quality, ultra detailed, vintage aesthetic, polaroid",
|
||||
"Vision_Prompt": "Write an upbeat Instagram description with emojis to accompany this selfie!",
|
||||
"frequency": 2,
|
||||
"ghost_tags": [
|
||||
"aigenerated",
|
||||
"stablediffusion",
|
||||
"sdxl",
|
||||
"elsewhereelsie",
|
||||
"selfie"
|
||||
],
|
||||
"llmPrompt": [
|
||||
{
|
||||
"content": "You are a helpful AI who assists in generating prompts that will be used to generate highly realistic images. Always use the most visually descriptive terms possible, and avoid any vague or abstract concepts. Do not include any words or descriptions based on other senses or emotions. Strive to show rather than tell. Space is limited, so be efficient with your words.",
|
||||
"role": "system"
|
||||
},
|
||||
{
|
||||
"content": "Using a series of words or sentence fragments separated by commas, describe a raw authentic selfie photo of a strikingly attractive young blonde model in one locale of your choosing. Focus on what she is wearing, what she is doing, what location or environment she is in, and how the photo is framed. Only use words and phrases that are visually descriptive. This model travels a lot, so any destination could be a good fit. Her style favors dark muted earth tones, dramatic lighting, and a VSCO girl aesthetic. She has a wild streak and loves hiking in the mountains and sea kayaking as much as partying at festivals or raves. Avoid cliche situations; instread strive for nuance and originality in composition and environment.",
|
||||
"role": "user"
|
||||
}
|
||||
],
|
||||
"workflows": [
|
||||
"selfie"
|
||||
],
|
||||
"width": 800,
|
||||
"height": 1080
|
||||
}
|
||||
},
|
||||
"comments": {
|
||||
"jokes": {
|
||||
"hashtags": [
|
||||
"pacificnw",
|
||||
"pnw",
|
||||
"exploregon",
|
||||
"girlswhohike",
|
||||
"trend",
|
||||
"fashion",
|
||||
"science",
|
||||
"photography",
|
||||
"football",
|
||||
"sports",
|
||||
"gamenight",
|
||||
"gamer",
|
||||
"pub",
|
||||
"soccer",
|
||||
"football",
|
||||
"usa",
|
||||
"proud",
|
||||
"army",
|
||||
"patriot",
|
||||
"trump2024",
|
||||
"gop",
|
||||
"letsgobrandon"
|
||||
],
|
||||
"img_comment_usr": "Make a wisecrack joke about this image. Scorch it with humor. (If that would be entirely inappropriate, you can instead respond with 'PASS', but please only pass if making a joke would be extremely distasteful).",
|
||||
"sentiment": "neutral"
|
||||
},
|
||||
"flattery": {
|
||||
"hashtags": [
|
||||
"beauty",
|
||||
"latergram",
|
||||
"wonder",
|
||||
"awe",
|
||||
"1440",
|
||||
"pnwonderland",
|
||||
"vegan",
|
||||
"natural",
|
||||
"travel",
|
||||
"nofilter"
|
||||
],
|
||||
"img_comment_usr": "Write a warm, gracious, upbeat, and flattering response to this Instagram post, in the tone and style befitting a very genuine modern young woman. If the content of the image or caption make it inappapropriate to comment, you may respond with 'PASS' in all capital letters, and without the quote marks, and your comment will not be posted.",
|
||||
"sentiment": "positive"
|
||||
}
|
||||
}
|
||||
}
|
2
SD.py
2
SD.py
|
@ -23,7 +23,7 @@ class ImageData:
|
|||
def __init__(self, image_urls):
|
||||
self.data = image_urls
|
||||
|
||||
class SD:
|
||||
class sd:
|
||||
def __init__(self, images_dir, api_key=""):
|
||||
self.endpoint = "http://localhost:8188/get_image_from_workflow"
|
||||
self.images_dir = images_dir # Correctly define the images_dir attribute here
|
||||
|
|
6
ig.py
6
ig.py
|
@ -35,7 +35,7 @@ from PIL import Image
|
|||
import io
|
||||
import json
|
||||
from ollama import Client as oLlama
|
||||
from SD import SD
|
||||
from sd import sd
|
||||
from dotenv import load_dotenv
|
||||
import logging
|
||||
|
||||
|
@ -94,11 +94,11 @@ args = parser.parse_args()
|
|||
### FOLDER & PATH SETUP ###
|
||||
###########################
|
||||
PROFILE = args.profile
|
||||
VISION_DIR = "/Users/sij/AI/Vision"
|
||||
VISION_DIR = "/Users/sij/AI/Vision" # CHANGE ME!
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
WORKFLOWS_DIR = os.path.join(VISION_DIR, 'workflows')
|
||||
RESULT_DIRECTORY = os.path.join(VISION_DIR, 'ComfyUI/output/')
|
||||
PROFILES_DIR = os.path.join(BASE_DIR, 'Profiles')
|
||||
PROFILES_DIR = os.path.join(BASE_DIR, 'profiles')
|
||||
PROFILE_DIR = os.path.join(PROFILES_DIR, PROFILE)
|
||||
PROFILE_IMAGES_DIR = os.path.join(PROFILE_DIR, 'images')
|
||||
PROFILE_CONFIG_PATH = os.path.join(PROFILE_DIR, f'config.json')
|
||||
|
|
Loading…
Reference in a new issue