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

fix: File name too long when prompt too long (#52) #53

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

Conversation

soulteary
Copy link

issue: #52

@philipturner
Copy link

I also patched up the error on the Swift side. Would you mind merging my commit into this PR?

@soulteary
Copy link
Author

@philipturner done, now we patched both swift and python 🍻

@atiorh
Copy link
Collaborator

atiorh commented Dec 16, 2022

Thank you for your interest in contributing to Core ML Stable Diffusion! Please review CONTRIBUTING.md. If you would like to proceed with this pull request, please indicate your agreement to the terms outlined in CONTRIBUTING.md by checking the box below.

We appreciate your interest in the project!

  • I agree to the terms outlined in CONTRIBUTING.md

@soulteary
Copy link
Author

#19 has been merged, so looks like I need to rollback your changes first @philipturner :)

@soulteary
Copy link
Author

  • I agree to the terms outlined in CONTRIBUTING.md

@atiorh

@philipturner
Copy link

philipturner commented Dec 16, 2022

There’s still the issue of when your folder structure is 200 characters long and the file is 75 characters. Then the complete path exceeds 255 characters and causes a runtime crash. Also have you looked at how Auto 1111’s WebUI permits prompts that are integer multiples of 75? I think limiting the file name to 75 characters is fixing a symptom, not the problem.

Furthermore, the maximum prompt size is 75 tokens, not 75 characters. @atiorh I request that you review and/or revert any commits conflating 75 characters with 75 comma-separated phrases.

@Drblessing
Copy link

What about taking the hash of the prompt?

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.

4 participants