Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add advanced log viewer #136

Open
wants to merge 1 commit into
base: moonride-main
Choose a base branch
from

Conversation

sngazm
Copy link

@sngazm sngazm commented Oct 1, 2023

Hi, I am building a log viewer for myself to better view the log of images generated by Fooocus-MRE. I think it would be quite useful, so I'm submitting a pull request.

Features:

  • One HTML file. no additional backend, no npm install
  • Quick date selection
  • Auto reload (if today)
  • Group images by batch of image generation
  • Show Diff with prompts from previous batch
  • Sort images (newest first, oldest first)
  • Can choose how many images to load at once (important for mobile users like me).
  • Easy grid resizing

This commit automatically creates a file named all.json in the outputs/XX-XX-XX directory and consolidates the logged information.
Then, if you place the attached viewer.html directly under the outputs directory, you can use the viewer by accessing /file=outputs/viewer.html on the local server.

What I am having trouble with is that the outputs directory is in the .gitignore , so I need to keep the viewer.html somewhere in the repository and copy it over during the log generation phase. Where should I place it?

viewer.html.zip

@barepixels
Copy link

barepixels commented Oct 22, 2023

I just tried your mod. Seem like a good idea to consolidates the logged information. But no all.json created in the outputs/XX-XX-XX directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants