Code Monkey home page Code Monkey logo

sd-webui-hardware-info-in-metadata's Introduction

Hardware Info in metadata

Adds hardware info (gpu name, vram, cpu name, ram) and taken time into generated images' metadata. For example: Hardware Info: "RTX 3060 12GB, i5-10400F 2.90GHz, 63GB RAM", Time taken: 2.8 sec. Extension for stable-diffusion-webui

In future you can see which ancient PC you used and what they were capable of 🫠

If someone has problem with your hardware info string, or it doesn't work with your GPU brand, please let me know about it in the issue section

Also you can set up remark in Settings > User Interface > Infotext

Generate button in the screenshot

sd-webui-hardware-info-in-metadata's People

Contributors

light-and-ray avatar w-e-w avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sd-webui-hardware-info-in-metadata's Issues

WARNING:modules.face_restoration_utils:Unable to load face-restoration model

This is odd, as I am not using GFPGAN.

WARNING:modules.face_restoration_utils:Unable to load face-restoration model                                                                                | 30/600 [00:42<14:01,  1.48s/it]Traceback (most recent call last):
  File "/Users/timshea/work/A1111/SDWU/stable-diffusion-webui/modules/face_restoration_utils.py", line 150, in restore_with_helper
    self.net = self.load_net()
  File "/Users/timshea/work/A1111/SDWU/stable-diffusion-webui/modules/gfpgan_model.py", line 46, in load_net
    raise ValueError("No GFPGAN model found")
ValueError: No GFPGAN model found
*** Error running postprocess_image: /Users/timshea/work/A1111/SDWU/stable-diffusion-webui/extensions/sd-webui-hardware-info-in-metadata/scripts/hardware_info_in_metadata.py
    Traceback (most recent call last):
      File "/Users/timshea/work/A1111/SDWU/stable-diffusion-webui/modules/scripts.py", line 897, in postprocess_image
        script.postprocess_image(p, pp, *script_args)
      File "/Users/timshea/work/A1111/SDWU/stable-diffusion-webui/modules/scripts_auto_postprocessing.py", line 24, in postprocess_image
        self.script.process(pp, **args_dict)
      File "/Users/timshea/work/A1111/SDWU/stable-diffusion-webui/extensions/sd-webui-hardware-info-in-metadata/scripts/hardware_info_in_metadata.py", line 125, in process
        pp.info["Time taken"] = self.getElapsedTime()
      File "/Users/timshea/work/A1111/SDWU/stable-diffusion-webui/extensions/sd-webui-hardware-info-in-metadata/scripts/hardware_info_in_metadata.py", line 115, in getElapsedTime
        elapsed = time.perf_counter() - self.start
    TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'

Suggestion to write out custom data into pngInfo

Hey Andray,

Love this tool, incredibly handy!

I have a couple suggestions. First is to just have a way to write some text into a "description" or "notes" valueName to the pngInfo when it runs your tool.

Second, and a little harder would be to have a way to add your own custom valueNames into the pngInfo. Like I could add the valueName: "character name" and then enter the character's name. Or "project name" and put in a project name. So basically some functionality to add valueNames and their value that get added to the pngInfo.

Thanks again, really find this useful!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.