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

[Bug]: Poor install instructions #32

Open
1 of 5 tasks
reaperhammer opened this issue Jul 31, 2024 · 6 comments
Open
1 of 5 tasks

[Bug]: Poor install instructions #32

reaperhammer opened this issue Jul 31, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@reaperhammer
Copy link

Checklist

  • The issue has not been resolved by following the troubleshooting guide
  • The issue exists on a clean installation of Fooocus
  • The issue exists in the current version of Fooocus
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

Why are the install instructions so vague? How to install this alongside an existing Fooocus instance?

Steps to reproduce the problem

read the Install instructions, https://github.com/mrhan1993/FooocusAPI#install

What should have happened?

The install instructions should be clearer on how to add the FooocusAPI alongside an existing Fooocus instance.

What browsers do you use to access Fooocus?

Google Chrome

Where are you running Fooocus?

Locally

What operating system are you using?

Windows 11

Console logs

N/A

Additional information

N/A

@reaperhammer reaperhammer added the bug Something isn't working label Jul 31, 2024
@mrhan1993 mrhan1993 added enhancement New feature or request and removed bug Something isn't working labels Jul 31, 2024
@mrhan1993
Copy link
Owner

Thank you for your suggestion, I will improve the documentation. By the way, your question is actually very simple. You can install FooocusAPI just like you install Fooocus, and the startup is the same. For example, using python launch.py will start both webui and api at the same time. You can access webui at http://localhost:7865 and access the API at http://localhost:7866. My goal in refactoring this project is to make the API a part of Fooocus, which means that the usage and functionality of Fooocus are completely consistent with the main repository, just with the addition of the API. I hope this can answer your question

@reaperhammer
Copy link
Author

Can I just grab a release from this project and extract the zip overwriting the same files in my already working Fooocus directory?

@mrhan1993
Copy link
Owner

Can I just grab a release from this project and extract the zip overwriting the same files in my already working Fooocus directory?

I did a simple test, and it's okay. But I still recommend that you back up your existing Fooocus before proceeding

@LeFanch
Copy link

LeFanch commented Aug 4, 2024

I was able to install FooocusAPI on Windows but the Fooocus documentation is not complete for Windows users : it gives a "handy" 7z file, but doesn't explain how to achieve an installation with pip+virtualenv.
So for FooocusAPI, on Windows, you have to use the Fooocus Linux documentation, although it installs the wrong PyTorch version...

@fullstackwebdev
Copy link

Thank you for your suggestion, I will improve the documentation. By the way, your question is actually very simple. You can install FooocusAPI just like you install Fooocus, and the startup is the same. For example, using python launch.py will start both webui and api at the same time. You can access webui at http://localhost:7865 and access the API at http://localhost:7866. My goal in refactoring this project is to make the API a part of Fooocus, which means that the usage and functionality of Fooocus are completely consistent with the main repository, just with the addition of the API. I hope this can answer your question

how do you use the API in docker? 7866 isn't enabled, and the web server doesn't respond to api calls only displasy the webui.

@mrhan1993
Copy link
Owner

@fullstackwebdev

Try this;

docker pull ghcr.io/mrhan1993/fooocusapi:2.5.3

cd FooocusAPI

docker run --rm --gpus all --name fooocusapi -v $(pwd):/content/app -p 7865:7865 -p 7866:7866 ghcr.io/mrhan1993/fooocusapi:2.5.3

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

No branches or pull requests

4 participants