candy-machine icon indicating copy to clipboard operation
candy-machine copied to clipboard

Usability as a website with multiple users

Open ForgetfulWasAria opened this issue 1 year ago • 4 comments

Over at /r/Open_Diffusion (Thread here ) a group of people are trying to build an open source dataset with the eventual goal of training a high quality model with an open source license. Since Candy Machine is gradio based, I thought it might be used for a web based tagger. So I have some questions for you:

  • Is this something you'd be OK with someone else doing?
  • Would you be open to making modifications to Candy Machine?
  • Can Candy Machine support multiple users, possibly working on the same image?
  • In what formats can Candy Machine read existing tags?

I don't want to put a pile of work on you. We have several coders who have experience with webdev who might be able to send pr's your way. Does this sound like something you'd be willing to help with?

ForgetfulWasAria avatar Jun 17 '24 07:06 ForgetfulWasAria

Wow, cool. That sounds like a really neat project!

Yes, definitely open to this. When I wrote the code, I was only really thinking about Candy Machine being used in single player mode, and locally, but I can't see why it couldn't be modified to support multiple simultaneous, remote users. (Though, my suggestion would be to perhaps lock or "check out" each image to a single user for a given time! :)

We might need to restructure a few things, for example, at the moment "one off" tags are stored in a hiddenTags field in the main config.json file, just so they don't clutter the UI. With many people adding hidden tags, there will be a lot of contention on this file, and likely errors.

One small clarification too - I'm not using Gradio. It's just a simple Python server I wrote myself, and a React based frontend.

My suggestion would be to have the devs look at the code, and maybe write up a short plan on how they would modify, and then we can go from there? Happy to help where possible though, I'm keen to focus most of my time at the moment on finishing "single player mode", only because that's what's most useful to me at the moment for other projects.

mikeknapp avatar Jun 18 '24 00:06 mikeknapp

Thank you for the response! If you're interested there's a discord server at https://discord.gg/2rZDJPGJ in addition to the subreddit. There are people with more technical knowledge than I have there.

"Single player mode" is probably the way we'd end up going. The conversation has drifted from when I wrote up the proposal you saw.

ForgetfulWasAria avatar Jun 18 '24 04:06 ForgetfulWasAria

I had a question asked on the discord about the feasibility of adding additional models. I directed that person here but if you were willing to join the discord, I think it would help things move. Thanks again for your time!

ForgetfulWasAria avatar Jun 21 '24 21:06 ForgetfulWasAria

If it's ok, it might be easier if you could proxy the questions here. I'd rather not join another Discord at the moment, but happy to help if I can.

mikeknapp avatar Jun 23 '24 07:06 mikeknapp