|
|
inviato il 10 Marzo 2026 ore 17:39
ok fatto. adesso si possono rielaborare le immagini gia' acquisite , aggiungendo solo i testi, senza toccare quanto gia' fatto. dovrebbe essere quindi leggermente piu' veloce (1 o 2 secondi per foto risparmiati). XALE, devi pero' scaricare tutti i .py con quel programmino di update. |
|
|
inviato il 10 Marzo 2026 ore 17:40
Si, si. Farò un aggiornamento generale con update.py |
|
|
inviato il 10 Marzo 2026 ore 18:32
ho creato il manuale in italiano e inglese. prima c'era solo il readme. |
|
|
inviato il 10 Marzo 2026 ore 22:03
[SUICIDE MODE ON] Scusate sono questi i famosi prompt? if mode == "description": prompt = ( "You are a professional photography captioning system.\n" "Task: describe the image.\n\n" f"{language_rules}" "\nSTRICT RULES:\n" "- Output ONLY the description text, nothing else\n" "- Include: subject, environment, colors, composition, atmosphere\n" f"- Concise, informative, max {max_description_words} words\n" ) elif mode == "tags": prompt = ( "You are a professional photographic tagging system.\n" "Task: observe the scene and generate photo tags, in format \"tag1,tag2,tag3\".\n" "Priority: 1) subjects, 2) scene, 3) actions, 4) objects, 5) weather, 6) mood, 7) colors\n\n" f"{language_rules}" "\nSTRICT RULES:\n" f"- Maximum {max_tags} tags\n" "- singular form, preserve capitalization for proper nouns (place names, etc.)\n" "- Only tag what you clearly see in the image\n" ) elif mode == "title": prompt = ( "You are a professional photo archiving system.\n" "Task: generate a factual, descriptive title for this photo.\n\n" f"{language_rules}" "\nSTRICT RULES:\n" "- Output ONLY the title text, nothing else\n" "- NO quotes, NO punctuation at the end\n" f"- Maximum {max_title_words} words\n" "- Be DESCRIPTIVE, not poetic or creative\n" "- Focus on: main subject, location type, action (if any)\n" "- For animals/plants: prefer generic terms if unsure (e.g. 'Uccello bianco' not a wrong species)\n" [SUICIDE MODE PAUSE] Se io volessi orientare maggiormente il Titolo e la Descrizione al classico schema giornalistico Who, What, When, Where, Why, avete qualche suggerimento? O forse si può chiedere a Claude... |
|
|
inviato il 10 Marzo 2026 ore 22:37
Proprio quelli. Eh, chiederei a Claude, al copilota, a Gemini o a chi per loro. Però, come ti scrivevo qualche messaggio fa, fatti un backup del file Python che tocchi in modo da poterlo ripristinare se la prova non dà il risultato sperato. Così la prova sarà praticamente indolore, al peggio scriverà un coacervo di cavolate. A naso inserirei come "task" nel ramo description per il chatbot qualcosa del tipo: "focus on identifying: - Who Is in the photo (the subject or subjects) - what is happening in the photo (what the subject or subjects are doing) - in which moment of day or historical moment the photo was shot - where the photo could have been shot - why the subject or subjects behave or act as they are doing in the photo" Però potrebbe non essere ideale eh, è solo un'ipotesi. Provided "as-is". |
|
|
inviato il 10 Marzo 2026 ore 23:45
Prima del "suicidio" comunico a Michele che 1) dopo l'ultimo aggiornamento; 2) dopo aver cancellato il DB, ho riprocessato 8 raw di Marrakech con questo risultato: 2 individuate correttamente (M. indicata nel titolo, tag o descrizione), 3 non individuate; 3 ancora in Algeria... In generale mi sembra che nelle ultime versioni abbia rallentato... Mi ridici i valori di default della lunghezza per titolo, tag e descrizione. |
|
|
inviato il 10 Marzo 2026 ore 23:51
Mi pare di default il config arrivi con 50/10/10, da qualche versione a questa parte. Io lo tengo a 40/5/5, è più snello e veloce (10/15s su RX 5600 XT 6GB, se hai 8GB e una RTX meglio della mia puoi pure tentare qualcosa più di me per stare sullo stesso tempo). |
|
|
inviato il 10 Marzo 2026 ore 23:55
Su consiglio di Claude ho modificato così il codice per la Descrizione e il Titolo. Per i Tag non ho cambiato nulla. Funziona, ma ora devo vedere se effettivamente cambia lo stile in modo significativo e utile. Altrimenti è tempo perso... if mode == "description": prompt = ( "You are a professional photography captioning system.\n" "Task: describe the image following journalistic principles.\n\n" f"{language_rules}" "\nSTRUCTURE — answer only what is clearly visible:\n" "\nBefore writing, internally identify (do NOT mention these labels in the output):\n" "- WHO: subjects present (people, animals, groups)\n" "- WHAT: the main action, event or situation depicted\n" "- WHERE: the location, environment or setting\n" "- WHEN: time of day, season, or era if inferable\n" "- WHY/HOW: context, mood, or purpose if apparent\n" "- VISUAL DETAILS: colors, composition, lighting, atmosphere\n" "\nSTRICT RULES:\n" "- Output ONLY the description text, nothing else\n" f"- Concise, informative, max {max_description_words} words\n" ) elif mode == "tags": prompt = ( "You are a professional photographic tagging system.\n" "Task: observe the scene and generate photo tags, in format \"tag1,tag2,tag3\".\n" "Priority: 1) subjects, 2) scene, 3) actions, 4) objects, 5) weather, 6) mood, 7) colors\n\n" f"{language_rules}" "\nSTRICT RULES:\n" f"- Maximum {max_tags} tags\n" "- singular form, preserve capitalization for proper nouns (place names, etc.)\n" "- Only tag what you clearly see in the image\n" ) elif mode == "title": prompt = ( "You are a professional photo archiving system.\n" "Task: generate a factual, descriptive title for this photo.\n\n" f"{language_rules}" "\nGUIDELINES (use only what is clearly visible):\n" "\nBefore writing, internally identify (do NOT mention these labels in the output):\n" "- WHO: the main subject (person, animal, group)\n" "- WHAT: the main action or situation\n" "- WHERE: the location or environment type\n" "\nSTRICT RULES:\n" "- Output ONLY the title text, nothing else\n" "- NO quotes, NO punctuation at the end\n" f"- Maximum {max_title_words} words\n" "- Be DESCRIPTIVE, not poetic or creative\n" "- Focus on: main subject, location type, action (if any)\n" "- For animals/plants: prefer generic terms if unsure (e.g. 'Uccello bianco' not a wrong species)\n" ) else: logger.error(f"Modalità non supportata: {mode}") return None |
|
|
inviato il 11 Marzo 2026 ore 0:15
OK ho fatto un Excel per comparare i risultati dei diversi prompt. Domani ci ragiono un attimo poi ve lo mando. Ora vado a dormire che domani la sveglia suona come sempre alle 7 Buonanotte. |
|
|
inviato il 11 Marzo 2026 ore 0:32
XALE. ma se 2 di marakesh le individua, e l'algoritmo e' sempre quello, vuol dire che i dati nelle altre sono diversi! non riesco a spiegarmelo. potresti mandarci solo i dati exiff di quelle sei foto? magari i campi sono cambiati e lui non riesce a recuperarli correttamente. Sono attapirato :-) |
|
|
inviato il 11 Marzo 2026 ore 1:20
si scusate, probabilmente le lunghezze variano perche' magari faccio dei test e poi quando faccio il push su github, mi spara anche il config com'e' in quel momento :-) penso che per il titolo/tags/descrizione, un 15, 15, 40 sia piu' che sufficente, ad ogni modo ovviamente, si possono generare quando e come si vuole , assieme o separatmente , soprattutto con l'ultima versione di ieri. |
Che cosa ne pensi di questo argomento?
Vuoi dire la tua? Per partecipare alla discussione iscriviti a JuzaPhoto, è semplice e gratuito!
Non solo: iscrivendoti potrai creare una tua pagina personale, pubblicare foto, ricevere commenti e sfruttare tutte le funzionalità di JuzaPhoto.
Con oltre 258000 iscritti, c'è spazio per tutti, dal principiante al professionista. |

Metti la tua pubblicità su JuzaPhoto (info) |