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

requirements.txt for local running? #67

Open
SoftologyPro opened this issue May 9, 2024 · 1 comment
Open

requirements.txt for local running? #67

SoftologyPro opened this issue May 9, 2024 · 1 comment

Comments

@SoftologyPro
Copy link

SoftologyPro commented May 9, 2024

Assuming the local gradio UI script is DocOwl1.5\app.py can we get a requirements.txt for what Python packages and versions are required?

I tried using the same requirments list as I had for mPLUG-Owl but the app.py does not seem to use the GPU (even though I specifically install a CUDA version of Torch) and I get thousands of errors repeatedly...

2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Tests\mPLUG-DocOwl\DocOwl1.5\mplug_docowl\utils.py", line 83, in write
2024-05-09 18:35:02 | ERROR | stderr |     self.logger.log(self.log_level, line.rstrip())
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1547, in log
2024-05-09 18:35:02 | ERROR | stderr |     self._log(level, msg, args, **kwargs)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1624, in _log
2024-05-09 18:35:02 | ERROR | stderr |     self.handle(record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1634, in handle
2024-05-09 18:35:02 | ERROR | stderr |     self.callHandlers(record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1696, in callHandlers
2024-05-09 18:35:02 | ERROR | stderr |     hdlr.handle(record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 968, in handle
2024-05-09 18:35:02 | ERROR | stderr |     self.emit(record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\handlers.py", line 75, in emit
2024-05-09 18:35:02 | ERROR | stderr |     logging.FileHandler.emit(self, record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1218, in emit
2024-05-09 18:35:02 | ERROR | stderr |     StreamHandler.emit(self, record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1108, in emit
2024-05-09 18:35:02 | ERROR | stderr |     self.handleError(record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1038, in handleError
2024-05-09 18:35:02 | ERROR | stderr |     sys.stderr.write('Message: %r\n'

A requirements.txt and any other needed info for running locally under Windows would be a great help.

Thanks.

@HAWLYQ
Copy link
Collaborator

HAWLYQ commented May 9, 2024

Hi, @SoftologyPro, our test environment is the same as mPLUG-Owl2, you can follow instructions in https://github.com/X-PLUG/mPLUG-Owl/tree/main/mPLUG-Owl2 to prepare environments. Besides, we have only tested the demo code under Linux and are not sure whether it works well under Windows~

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

No branches or pull requests

2 participants