Skip to content
代码片段 群组 项目
  1. 12月 31, 2023
  2. 10月 14, 2023
  3. 9月 05, 2023
  4. 8月 04, 2023
  5. 7月 29, 2023
  6. 7月 15, 2023
  7. 7月 11, 2023
  8. 6月 02, 2023
  9. 6月 01, 2023
  10. 5月 29, 2023
  11. 5月 12, 2023
  12. 5月 11, 2023
  13. 5月 10, 2023
  14. 4月 14, 2023
  15. 4月 09, 2023
  16. 3月 26, 2023
  17. 3月 25, 2023
    • butaixianran's avatar
      Fix None type error for TI module · 803d44c4
      butaixianran 创作于
      When user using model_name.png as a preview image, textural_inversion.py still treat it as an embeding, and didn't handle its error, just let python throw out an None type error like following:
      ```bash
        File "D:\Work\Dev\AI\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 155, in load_from_file
          name = data.get('name', name)
      AttributeError: 'NoneType' object has no attribute 'get'
      ```
      
      With just a simple `if data:` checking as following, there will be no error, breaks nothing, and now this module can works fine with user's preview images.
      Old code:  
      ```python
                      data = extract_image_data_embed(embed_image)
                      name = data.get('name', name)
      ```
      New code:  
      ```python
                      data = extract_image_data_embed(embed_image)
                      if data:
                          name = data.get('name', name)
                      else:
                          # if data is None, means this is not an embeding, just a preview image
                          return
      ```
      
      Also, since there is no more errors on textual inversion module, from now on, extra network can set "model_name.png" as preview image for embedings.
      未验证
      803d44c4
  18. 3月 15, 2023
  19. 3月 12, 2023
  20. 2月 15, 2023
  21. 1月 29, 2023
  22. 1月 26, 2023
  23. 1月 21, 2023
    • AUTOMATIC's avatar
      extra networks UI · 40ff6db5
      AUTOMATIC 创作于
      rework of hypernets: rather than via settings, hypernets are added directly to prompt as <hypernet:name:weight>
      40ff6db5
  24. 1月 19, 2023
  25. 1月 15, 2023
  26. 1月 14, 2023
  27. 1月 13, 2023
  28. 1月 12, 2023
  29. 1月 11, 2023
  30. 1月 10, 2023
加载中