Giter Site home page Giter Site logo

Comments (7)

ParisNeo avatar ParisNeo commented on July 25, 2024

OK, I'll add this. Nice Idea.
As for the bin file it should be downloaded to your transformers cache directory.
Generally in your home folder /.cache/torch/transformers/
Maybe I should download the model to a local folder for example. That would be eazier to users if they want to uninstall the extension.
I'll remove english from the list. If you use english, just disable the extension.
Actually, this tool uses MBART50 locally on your PC which is cool, since you don't use any internet service and it is 100% free and open source.

Thank you for the comment

from prompt_translator.

ParisNeo avatar ParisNeo commented on July 25, 2024

I have adressed all the issues you mensioned:

  • The model is now downloaded to a subfolder called model in the extension directory, so that it gets removed if you uninstall the extension
  • English is removed from the list
  • Now you can enable or not the negative prompt translation
    Thank you for your valuable comment

from prompt_translator.

Tagalskiy avatar Tagalskiy commented on July 25, 2024

Thanks, but after installing your extension, right after launching my Stable Diffusion refuses to work, in the console there is an error:

Traceback (most recent call last):
File "G:\AI\SD\AUTOMATIC1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "G:\AI\SD\AUTOMATIC1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "G:\AI\SD\AUTOMATIC1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "G:\AI\SD\AUTOMATIC1111\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1377, in preprocess
return self.choices.index(x)
ValueError: '' is not in list

After removing the extension, everything works as before.

from prompt_translator.

ParisNeo avatar ParisNeo commented on July 25, 2024

I'll look it up right now and tell you what's wrong.

from prompt_translator.

ParisNeo avatar ParisNeo commented on July 25, 2024

Hi and thank you for pointing this out.
I forgot to select a default language that is not English. On py PC it works because I have already run this before so the last language is selected that's why I didn't see it.

I have patched the code and it should work.
Let me know if it works for you

from prompt_translator.

Tagalskiy avatar Tagalskiy commented on July 25, 2024

Thanks, everything seems to be working now )

from prompt_translator.

ParisNeo avatar ParisNeo commented on July 25, 2024

Happy that it works for you. And again, thanks for pointing out the errors. It helped enhancing the tool.

from prompt_translator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.