Skip to content

A SwarmUI extension to change image metadata to A1111/Forge format.

Notifications You must be signed in to change notification settings

Jelosus2/ImgMetadataConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwarmUI-ImgMetadataConverter

A SwarmUI extension that allows you to save a duplicate image with metadata that looks like the one from A1111/Forge. Mainly useful for those who publish on CivitAI.

I appreciate any kind of feedback, if you have a feature request or want to report a bug you can do so in the Issues page.

Installation

  1. Close SwarmUI if it's running.
  2. Go to (SwarmUI)/src/Extensions
  3. Open a cmd in that folder and run git clone https://github.com/Jelosus2/ImgMetadataConverter
  4. Run update-windows.bat or update-linuxmac.sh to recompile the project.
  5. Launch SwarmUI.

Update the extension

  1. Close SwarmUI if it's running.
  2. Go to (SwarmUI)/src/Extensions/ImgMetadataConverter
  3. Open a cmd in that folder and run git pull
  4. Run update-windows.bat or update-linuxmac.sh to recompile the project.
  5. Launch SwarmUI and go to the ImgMetadataConverter tab to apply new settings in case there's any.

How to use it

Once SwarmUI is running you can go to the ImgMetadataConverter and change the options. Remember to activate the extension or else it won't work! demo image The images with A1111-like metadata will be saved in the OutputDirectory. You can use relative and absolute paths for it. If you wish to use the same directory as the one you have in Server -> Server Configuration -> Paths just use [SwarmUI.OutputPath] in the field (yes, you can append subdirectories like [SwarmUI.OutputPath]/mysubdirectory). If you wish to append the same directory as in User -> User Settings -> OutPathBuilder to the final path you can enable the AppendOutPathBuild option.

Once all setup is done when you generate an image it will automatically save a duplicate in the OutputPath of the extension settings. The file name would end with this: -converted. Unless you enable the SkipDuplicates option, in that case the image will be saved on the swarm's default output directory and with no -converted at the end but it will still have the A1111-like metadata.

Hash Table

hash table

In the hash table you can delete and calculate hashes (autoV3 format) for your resources stored in SwarmUI so they don't get calculated while in the process of generating an image. You can also search for the resource on CivitAI directly from the table if it has the hash calculated. Note that resources that are old may not have the hash calculated on CivitAI's side, in that case you will have to search for it manually.

Common errors.

- If you get erros related to checkpoints or loras not being found make sure your paths for them are correct in Server -> Server Settings -> Paths. If they are correct and you still face an issue please open an issue.

- If you get errors when launching SwarmUI with the extension update SwarmUI and try again. If the error persists open an issue.

About

A SwarmUI extension to change image metadata to A1111/Forge format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published