Helper reports preview image as NSFW when it isn't
complete
h
halr9000
While looking for cool landscapes, I came across this LoRA https://civitai.com/models/60893/booscapes. Downloaded using my helper, which worked fine, but the console reported that the preview image was NSFW, even though it is not. I checked the .info file, it's not flagged as NSFW. Possible this is bad logic in the helper and that would prevent those who have NSFW image previews disabled from actually seeing legit images. Pasting console dump below:
Civitai Helper: Getting model info by: https://civitai.com/models/60893/booscapes
Civitai Helper: Run get_model_id_from_url
Civitai Helper: Request model info from civitai
Civitai Helper: Get subfolder for: D:\hal\stable-diffusion\models\Lora
Civitai Helper: Get following info for downloading:
Civitai Helper: model_name:BOOscapes
Civitai Helper: model_type:lora
Civitai Helper: subfolders:['\\architecture', '\\character', '\\creature', '\\landscape', '\\sd15', '\\sd21', '\\style', '\\vehicle', '\\weapon', '\\x', '/']
Civitai Helper: version_strs:['v1.0_65374']
Civitai Helper: Searching local model by version id
Civitai Helper: folder: D:\hal\stable-diffusion\models\Lora\landscape
Civitai Helper: version_id: 65374
Civitai Helper: Start downloading from: https://civitai.com/api/download/models/65374
Civitai Helper: File size: 37940386
Civitai Helper: Target file path: D:\hal\stable-diffusion\models\Lora\landscape\booscapes.safetensors
Civitai Helper: Downloading to temp file: D:\hal\stable-diffusion\models\Lora\landscape\booscapes.downloading
Civitai Helper: Downloaded size: 0
[--------------------------------------------------] 100%
Civitai Helper: File Downloaded to: D:\hal\stable-diffusion\models\Lora\landscape\booscapes.safetensors
Civitai Helper: Request version info from civitai
Civitai Helper: Write model info to file: D:\hal\stable-diffusion\models\Lora\landscape\booscapes.civitai.info
Civitai Helper: Checking preview image for model: D:\hal\stable-diffusion\models\Lora\landscape\booscapes.safetensors
Civitai Helper: This image is NSFW
Civitai Helper: Downloading file from: https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/f14850fe-f50f-4584-a247-216be5d2d7c0/width=512/723497.jpeg
Civitai Helper: File downloaded to: D:\hal\stable-diffusion\models\Lora\landscape\booscapes.preview.png
Civitai Helper: Done. Model downloaded to: D:\hal\stable-diffusion\models\Lora\landscape\booscapes.safetensors
Civitai Helper: Start use_preview_image_prompt
Civitai Helper: Start parse js msg
Civitai Helper: End parse js msg
Civitai Helper: Load model info of /landscape/booscapes.safetensors in lora
Civitai Helper: End use_preview_image_prompt
This post was marked as
complete
Civitai
under review