Skip to content

Commit

Permalink
Merge pull request #515 from AFP-Medialab/pre-master
Browse files Browse the repository at this point in the history
.80 RC
  • Loading branch information
ttramb authored Jun 4, 2024
2 parents 8b2c8e0 + 7203874 commit 2854e29
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/locales/en/components/NavItems/tools/Deepfake.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"deepfake_label": "Media link", "deepfake_name": "Deepfake", "deepfake_placeholder": "Paste the URL here", "deepfake_support": "Your browser does not support the video tag.", "deepfake_clips": "Clips of the video", "deepfake_select": "Select a shot to see the analysis results of that clip", "deepfake_clip": "Clip selected", "deepfake_faces": "Faces recognized", "deepfake_video": "Video analyzed", "deepfake_results": "Results of the clip selected", "deepfake_error_400": "Error: Invalid image link. Ensure it points to a publicly accessible", "deepfake_error_500": "Service internal error", "deepfake_error_413": "The file is too large", "deepfake_error_422": "The file is too large", "deepfake_image_link": "Image link", "deepfake_video_link": "Video link", "deepfake_title_what": "What are Thumbnails", "deepfake_filters_explanation_image": "Explanation image", "deepfake_filters_explanation_video": "Explanation video", "deepfake_image_title": "Detection results", "deepfake_image_faceswap_name": "Faceswap", "deepfake_image_faceswap_description": "This method aims to detect if the person's face has been replaced in the picture.", "deepfake_image_gan_name": "GAN", "deepfake_image_gan_description": "This method aims to detect if the image has been generated by a Generative Adversarial Network (GAN).", "deepfake_image_diffusion_name": "Latent Diffusion model", "deepfake_image_diffusion_description": "This method aims to detect if the image has been generated through a diffusion model neural network.", "deepfake_image_detection_alert": "This image has been detected as generated with a ", "deepfake_image_detection_alert_2": "algorithm", "deepfake_video_title": "Detection results", "deepfake_video_videoreport_name": "Mever Deepfake Video detector", "deepfake_video_videoreport_description": "This method aims to detect if the person's face has been replaced in the video.", "deepfake_video_ftcn_name": "Fully Temporal Convolution Network", "deepfake_video_ftcn_description": "This method aims to detect temporal anomalies for videos with faces.", "deepfake_video_facereenact_name": "Face Reenactment", "deepfake_video_facereenact_description": "This method aims to detect if the faces in the video have been synthesized with a transfer from a source face shape to a target face while preserving the appearance and the identity of the target face.", "deepfake_video_detection_alert": "This video has been detected as generated with a ", "deepfake_video_detection_alert_2": "algorithm", "button_remove": "Remove", "deepfake_no_face_detection": "No face detected", "button_localfile": "Local file", "submit_button": "Submit"}
{"deepfake_label": "Media link", "deepfake_name": "Deepfake", "deepfake_placeholder": "Paste the URL here", "deepfake_support": "Your browser does not support the video tag.", "deepfake_clips": "Clips of the video", "deepfake_select": "Select a shot to see the analysis results of that clip", "deepfake_clip": "Clip selected", "deepfake_faces": "Faces recognized", "deepfake_video": "Video analyzed", "deepfake_results": "Results of the clip selected", "deepfake_error_400": "Error: Invalid image link. Ensure it points to a publicly accessible", "deepfake_error_500": "Service internal error", "deepfake_error_413": "The file is too large", "deepfake_error_422": "The file is too large", "deepfake_image_link": "Image link", "deepfake_video_link": "Video link", "deepfake_title_what": "What are Thumbnails", "deepfake_filters_explanation_image": "Explanation image", "deepfake_filters_explanation_video": "Explanation video", "deepfake_image_title": "Detection results", "deepfake_image_faceswap_name": "Faceswap", "deepfake_image_faceswap_description": "This method aims to detect if the person's face has been replaced in the picture.", "deepfake_image_gan_name": "GAN", "deepfake_image_gan_description": "This method aims to detect if the image has been generated by a Generative Adversarial Network (GAN).", "deepfake_image_diffusion_name": "Latent Diffusion model", "deepfake_image_diffusion_description": "This method aims to detect if the image has been generated through a latent diffusion model neural network.", "deepfake_image_detection_alert": "This image has been detected as generated with a ", "deepfake_image_detection_alert_2": "algorithm", "deepfake_video_title": "Detection results", "deepfake_video_videoreport_name": "Mever Deepfake Video detector", "deepfake_video_videoreport_description": "This method aims to detect if the person's face has been replaced in the video.", "deepfake_video_ftcn_name": "Fully Temporal Convolution Network", "deepfake_video_ftcn_description": "This method aims to detect temporal anomalies for videos with faces.", "deepfake_video_facereenact_name": "Face Reenactment", "deepfake_video_facereenact_description": "This method aims to detect if the faces in the video have been synthesized with a transfer from a source face shape to a target face while preserving the appearance and the identity of the target face.", "deepfake_video_detection_alert": "This video has been detected as generated with a ", "deepfake_video_detection_alert_2": "algorithm", "button_remove": "Remove", "deepfake_no_face_detection": "No face detected", "button_localfile": "Local file", "submit_button": "Submit"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"synthetic_image_detection_label": "Media link", "synthetic_image_detection_name": "Synthetic Image Detection", "synthetic_image_detection_placeholder": "Paste the URL here", "synthetic_image_detection_results": "Results of the clip selected", "synthetic_image_detection_link": "Image link", "synthetic_image_detection_gan_name": "GAN", "synthetic_image_detection_gan_description": "This method aims to detect if the image has been generated by a Generative Adversarial Network (GAN).", "synthetic_image_detection_diffusion_name": "Latent Diffusion model", "synthetic_image_detection_diffusion_description": "This method aims to detect if the image has been generated through a diffusion model neural network.", "synthetic_image_detection_progan_name": "ProGAN", "synthetic_image_detection_progan_description": "This model can detect fully synthetic images generated by ProGAN Models or architectures that are similar. The model's architecture is a variant of ResNet50, including an initial layer for residual extraction and with no downsampling in the first layer. The model is not pretrained and strong augmentations are carried out including blurring, compression, gaussian noise adding, geometric transformations, cut-out, and brightness and contrast changes.", "synthetic_image_detection_adm_name": " ADM", "synthetic_image_detection_adm_description": "This model can detect fully synthetic images generated by ADMs or architectures that are similar. The model's architecture is a variant of ResNet50, including an initial layer for residual extraction and with no downsampling in the first layer. The model is not pretrained and strong augmentations are carried out including blurring, compression, gaussian noise adding, geometric transformations, cut-out, and brightness and contrast changes.", "synthetic_image_detection_progan_rine_mever_name": "ProGAN RINE", "synthetic_image_detection_progan_rine_mever_description": "This model detects fully synthetic images. It specializes in detecting images generated by Generative Adversarial Networks (GAN). The CLIP (Contrastive Language-Image Pre-training) technology extracts key characteristics from the image.", "synthetic_image_detection_ldm_rine_mever_name": "LDM RINE", "synthetic_image_detection_ldm_rine_mever_description": "This model detects fully synthetic images. It specializes in detecting images generated by Latent Diffusion Models (LDM), while exhibiting strong detection performance across several other generative methods. The CLIP (Contrastive Language-Image Pre-training) technology extracts key characteristics from the image.", "synthetic_image_detection_title": "Detection results", "synthetic_image_detection_alert": "This image has been detected as generated with a ", "synthetic_image_detection_alert_2": " algorithm", "synthetic_image_detection_error_400": "Error: Invalid image link. Ensure it points to a publicly accessible image with dimensions between 128x128 and 2000x2000 pixels.", "synthetic_image_detection_error_generic": "An error happened. Please try again or try a different image", "synthetic_image_detection_algorithms_errors": "One or more algorithms returned errors. The analysis may be incomplete. Make sure the image has dimensions between 128x128 and 2000x2000 pixels.", "synthetic_image_detection_not_found": "No detection found", "submit_button": "Submit", "button_localfile": "Local file", "synthetic_image_detection_gauge_detection": "Detection", "synthetic_image_detection_gauge_no_detection": "No detection", "synthetic_image_detection_additional_results": "Detection details", "synthetic_image_detection_additional_results_hide": "Hide detection details", "synthetic_image_detection_rating": "Explanation: The veraAI detector of the InVID-WeVerify plugin finds ", "synthetic_image_detection_rating_4": "very strong evidence suggesting that this image is synthetic", "synthetic_image_detection_rating_3": "strong evidence suggesting that this image is synthetic", "synthetic_image_detection_rating_2": "moderate evidence (suspicious but non conclusive) suggesting that this image could be synthetic. The absence of detection does not guarantee the image is not post-edited.", "synthetic_image_detection_rating_1": "weak evidence (non conclusive) suggesting that this image could be synthetic. The absence of detection does not guarantee the image is not post-edited.", "synthetic_image_detection_button_copy_text_1": "Copy text", "synthetic_image_detection_button_copy_text_2": "Text copied!", "synthetic_image_detection_alert_label_4": "Very strong evidence", "synthetic_image_detection_alert_label_3": "Strong evidence", "synthetic_image_detection_alert_label_2": "Moderate evidence (suspicious but non conclusive)", "synthetic_image_detection_alert_label_1": "Weak evidence (non conclusive)", "synthetic_image_detection_probability_text": "Probability:", "synthetic_image_detection_generic_detection_text": "AI-Generated image detected", "synthetic_image_detection_scale_explanation_link": "What do the gauge colors mean?", "synthetic_image_detection_scale_modal_explanation_title": "What do the gauge colors mean?", "synthetic_image_detection_scale_modal_explanation_rating_1": "<50% - Weak evidence (non-conclusive)", "synthetic_image_detection_scale_modal_explanation_rating_2": "\u226550% - Moderate evidence (suspicious but non-conclusive)", "synthetic_image_detection_scale_modal_explanation_rating_3": "\u226570% - Strong evidence (AI-generated)", "synthetic_image_detection_scale_modal_explanation_rating_4": "\u226590% - Very strong evidence (AI-generated)", "synthetic_image_detection_download_gauge_button": "Download Gauge Chart as jpeg file"}
{"synthetic_image_detection_label": "Media link", "synthetic_image_detection_name": "Synthetic Image Detection", "synthetic_image_detection_placeholder": "Paste the URL here", "synthetic_image_detection_results": "Results of the clip selected", "synthetic_image_detection_link": "Image link", "synthetic_image_detection_gan_name": "GAN", "synthetic_image_detection_gan_description": "This method aims to detect if the image has been generated by a Generative Adversarial Network (GAN).", "synthetic_image_detection_diffusion_name": "Latent Diffusion model", "synthetic_image_detection_diffusion_description": "This method aims to detect if the image has been generated through a latent diffusion model neural network.", "synthetic_image_detection_progan_name": "ProGAN", "synthetic_image_detection_progan_description": "This model can detect fully synthetic images generated by ProGAN Models or architectures that are similar. ", "synthetic_image_detection_adm_name": " ADM", "synthetic_image_detection_adm_description": "This model can detect fully synthetic images generated by ADMs or architectures that are similar.", "synthetic_image_detection_progan_rine_mever_name": "ProGAN RINE", "synthetic_image_detection_progan_rine_mever_description": "This model detects fully synthetic images. It specializes in detecting images generated by Generative Adversarial Networks (GAN). The CLIP (Contrastive Language-Image Pre-training) technology extracts key characteristics from the image.", "synthetic_image_detection_ldm_rine_mever_name": "LDM RINE", "synthetic_image_detection_ldm_rine_mever_description": "This model detects fully synthetic images. It specializes in detecting images generated by Latent Diffusion Models (LDM), while exhibiting strong detection performance across several other generative methods. The CLIP (Contrastive Language-Image Pre-training) technology extracts key characteristics from the image.", "synthetic_image_detection_title": "Detection results", "synthetic_image_detection_alert": "This image has been detected as generated with a ", "synthetic_image_detection_alert_2": " algorithm", "synthetic_image_detection_error_400": "Error: Invalid image link. Ensure it points to a publicly accessible image with dimensions between 128x128 and 2000x2000 pixels.", "synthetic_image_detection_error_generic": "An error happened. Please try again or try a different image", "synthetic_image_detection_algorithms_errors": "One or more algorithms returned errors. The analysis may be incomplete. Make sure the image has dimensions between 128x128 and 2000x2000 pixels.", "synthetic_image_detection_not_found": "No detection found", "submit_button": "Submit", "button_localfile": "Local file", "synthetic_image_detection_gauge_detection": "Detection", "synthetic_image_detection_gauge_no_detection": "No detection", "synthetic_image_detection_additional_results": "Detection details", "synthetic_image_detection_additional_results_hide": "Hide detection details", "synthetic_image_detection_rating": "Explanation: The veraAI detector of the InVID-WeVerify plugin finds ", "synthetic_image_detection_rating_4": "very strong evidence suggesting that this image is synthetic", "synthetic_image_detection_rating_3": "strong evidence suggesting that this image is synthetic", "synthetic_image_detection_rating_2": "moderate evidence (suspicious but non conclusive) suggesting that this image could be synthetic. The absence of detection does not guarantee the image is not post-edited.", "synthetic_image_detection_rating_1": "weak evidence (non conclusive) suggesting that this image could be synthetic. The absence of detection does not guarantee the image is not post-edited.", "synthetic_image_detection_button_copy_text_1": "Copy text", "synthetic_image_detection_button_copy_text_2": "Text copied!", "synthetic_image_detection_alert_label_4": "Very strong evidence", "synthetic_image_detection_alert_label_3": "Strong evidence", "synthetic_image_detection_alert_label_2": "Moderate evidence (suspicious but non conclusive)", "synthetic_image_detection_alert_label_1": "Weak evidence (non conclusive)", "synthetic_image_detection_probability_text": "Probability:", "synthetic_image_detection_generic_detection_text": "AI-Generated image detected", "synthetic_image_detection_scale_explanation_link": "What do the gauge colors mean?", "synthetic_image_detection_scale_modal_explanation_title": "What do the gauge colors mean?", "synthetic_image_detection_scale_modal_explanation_rating_1": "<50% - Weak evidence (non-conclusive)", "synthetic_image_detection_scale_modal_explanation_rating_2": "\u226550% - Moderate evidence (suspicious but non-conclusive)", "synthetic_image_detection_scale_modal_explanation_rating_3": "\u226570% - Strong evidence (AI-generated)", "synthetic_image_detection_scale_modal_explanation_rating_4": "\u226590% - Very strong evidence (AI-generated)", "synthetic_image_detection_download_gauge_button": "Download Gauge Chart as jpeg file"}
14 changes: 9 additions & 5 deletions src/components/Shared/ReverseSearch/engines/google-lens.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,23 @@ export const reverseImageSearchGoogleLens = (
body: formData,
})
.then((response) => {
return response.text();
//API change
const targetUrl = response.url;
const urlObject = { url: targetUrl };
openNewTabWithUrl(urlObject, isRequestFromContextMenu);
//return response.text();
})
.then((body) => {
/*.then((body) => {
var tabUrl = body.match(/(?<=<meta .*url=)(.*)(?=")/)[1];
// @ts-ignore
tabUrl = decodeURIComponent(tabUrl.replaceAll("&amp;", "&"));
//console.log(tabUrl)
const urlObject = { url: "https://lens.google.com" + tabUrl };
openNewTabWithUrl(urlObject, isRequestFromContextMenu);
})
.catch(() => {
//console.error(error);
})*/
.catch((error) => {
console.error(error);
})
.finally(() => {
// document.body.style.cursor = "default";
Expand Down

0 comments on commit 2854e29

Please sign in to comment.