Coder Social home page Coder Social logo

skquark / ai-friends Goto Github PK

View Code? Open in Web Editor NEW
48.0 48.0 8.0 52.61 MB

A collection of handy helpers for AI art generation, AI writing and other experimental tools

Jupyter Notebook 31.08% Python 68.76% Batchfile 0.05% PowerShell 0.01% Inno Setup 0.07% Shell 0.03%

ai-friends's People

Contributors

radixseven avatar skquark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ai-friends's Issues

Desktop Error : AnimateDiff Broken.

tried to generate a vid, i didnt use any controlnet parameters

Cloning into 'animatediff-cli-prompt-travel'...
remote: Enumerating objects: 870, done.
remote: Counting objects: 100% (299/299), done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 870 (delta 264), reused 240 (delta 232), pack-reused 571
Receiving objects: 100% (870/870), 1.84 MiB | 2.39 MiB/s, done.
Resolving deltas: 100% (521/521), done.
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\Program Files (x86)\StableDiffusionDeluxe\venv\Lib\site-packages\cv2\cv2.pyd'
Check the permissions.

WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\program files (x86)\stablediffusiondeluxe\venv\lib\site-packages)
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
copier 8.2.0 requires pydantic>=2.0.3, but you have pydantic 1.10.12 which is incompatible.
Exception in thread Thread-409 ():
Traceback (most recent call last):
File "C:\Users\mahmo\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\mahmo\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Program Files (x86)\StableDiffusionDeluxe\venv\Stable-Diffusion-Deluxe.py", line 9737, in
ElevatedButton(content=Text("๐Ÿ’š Run AnimateDiff", size=20), color=colors.ON_PRIMARY_CONTAINER, bgcolor=colors.PRIMARY_CONTAINER, height=45, on_click=lambda _: run_animate_diff(page)),
File "C:\Program Files (x86)\StableDiffusionDeluxe\venv\Stable-Diffusion-Deluxe.py", line 30968, in run_animate_diff
run_sp(f"rm -rf {sd_models}", realtime=False)
File "C:\Program Files (x86)\StableDiffusionDeluxe\venv\Stable-Diffusion-Deluxe.py", line 51, in run_sp
return subprocess.run(cmd_list, stdout=subprocess.PIPE, env=env).stdout.decode('utf-8')
File "C:\Users\mahmo\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\mahmo\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 969, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\mahmo\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1438, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

First few attemps

47D9F7EF-0D1D-4E0C-8C65-4EE5D200F2AE
A9165056-CC1D-4A1F-AAA2-63FC6C092CD9

Mobile user here.

I may be doing the setup wrong. Followed instructions best I could. Artist here amateur dabbling in code.

The last instruction I have circled evades my comprehension.

Also, when I place json in project directory I get this error.

Was however able to get the local tunnel/ app up, but when I hit install nothing happens. More to come if more info is needed.

Thank you for your work

On Windows, wget is needed to install ESRGAN

The code to install ESRGAN uses wget, which is unavailable by default in Windows.

I was able to diagnose and fix the problem myself by installing using Scoop, but SDD should check and notify users if wget is missing (or, better yet, not rely on it).

Here is the error that is generated if wget is not installed:

future: <Future finished exception=FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)>
Traceback (most recent call last):
  File "C:\Users\Eric\scoop\apps\python\3.11.3\Lib\concurrent\futures\thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\StableDiffusionDeluxe\venv\Lib\site-packages\flet_core\page.py", line 950, in wrapper
    handler(*args)
  File "D:\Programs\StableDiffusionDeluxe\venv\Stable-Diffusion-Deluxe.py", line 2274, in run_installers
    get_ESRGAN(page)
  File "D:\Programs\StableDiffusionDeluxe\venv\Stable-Diffusion-Deluxe.py", line 24963, in get_ESRGAN
    run_sp(f"wget {model_url} -P experiments/pretrained_models --quiet", cwd=ESRGAN_folder)
  File "D:\Programs\StableDiffusionDeluxe\venv\Stable-Diffusion-Deluxe.py", line 62, in run_sp
    returned = subprocess.run(cmd_list, stdout=subprocess.PIPE, env=env, **cwd_arg).stdout.decode('utf-8')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Eric\scoop\apps\python\3.11.3\Lib\subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Eric\scoop\apps\python\3.11.3\Lib\subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Eric\scoop\apps\python\3.11.3\Lib\subprocess.py", line 1509, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

Unable to start Colab pro once I "Restart session and Run All again."

Hi,

I have Google Colab Pro, and I am trying to run the notebook.

After the first message requesting to "Restart session and Run All again." I go to to the Runtime tab, I select that option, but I am getting this error:


Settings file not found, starting with defaults...
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/content/sdd_colab.py in <module>
  45444 elif tunnel_type == "localtunnel":
  45445     import re
> 45446     localtunnel = subprocess.Popen(['lt', '--port', port, 'http'], stdout=subprocess.PIPE)
  45447     url = str(localtunnel.stdout.readline())
  45448     public_url = (re.search("(?P<url>https?:\/\/[^\s]+loca.lt)", url).group("url"))

1 frames
[/usr/lib/python3.10/subprocess.py](https://localhost:8080/#) in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, gid, gids, uid, umask, start_new_session)
   1794                     fds_to_keep = set(pass_fds)
   1795                     fds_to_keep.add(errpipe_write)
-> 1796                     self.pid = _posixsubprocess.fork_exec(
   1797                             args, executable_list,
   1798                             close_fds, tuple(sorted(map(int, fds_to_keep))),

TypeError: expected str, bytes or os.PathLike object, not int

Models from HuggingFace don't download

I add the HF_TOKEN key to colab and run colab w/ default settings.
It loads the window.
I add the huggingface key to the window.
I keep everything at default settings and hit 'install'
It grabs a handful of files in the notebook and then gets to loading pipline components, which never goes past 0
In the window, it says "Looks like you need to accept the HuggingFace SDXL-Base V1 Model Card to use Checkpoint
Error, no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory /root/.cache/huggingface/hub/models-stabilityai--stable-diffusion-xl-base-1.0/snapshots/bunchofnumbers/text_encoder_2

There is no model card to accept on the huggingface page. I looked it up and apparently they removed this requirement.

[Features Requests]: a few things...perhaps

Hey, really cool UI with a ton of features I'm excited to test out. Just wanted to provide some honest feedback on a few things that seemed a bit odd or confusing to me:

Model downloading:
Not sure where models get downloaded to or how long downloads will take
Would be great to have a download progress bar with estimated time, so I know when models are ready
For example, I started downloading the stable diffusion text2img and img2img models over 10 minutes ago, and it still hasn't completed even though I have a very fast internet connection. A progress bar would help me know if it got stuck or how long I can expect it to take.

Image generating workflow feels fragmented:
Image settings in one tab, prompts in another, generate in a third tab
Would be nicer if it was unified in one generate images tab
Could have subtabs for prompt options, settings, etc

Also unsure if I can generate just one image at a time, or if it has to be batch
Overall it feels less flexible than expected for an app with so many features

Here are some suggestions that I think could help:
Add download progress bar with estimated time on model downloads
Unify image generation in one tab
Tabs or sections for image settings, prompts, options
Allow single image generation, not just batches
Consider more flexibility/customization in the workflow

Let me know if any of that feedback helps! I'm really impressed with the app so far and am looking forward to testing more features once I get past those initial hurdles. Excited to see where this goes!

Issue with Donwloading the model and running generate?

It took awhile to download the model, and I'm not even sure where it downloaded.. i think u need to add a button to show where the download folder is, to make sure it did download or not or for sure. And i think you should add the ability for people to find their already downloaded safetensor models, and convert them to diffusers

this is the error i got, after 1.5 supposedly downloaded and me trying to generate a normal image:

C:\Program Files (x86)\StableDiffusionDeluxe\venv\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
C:\Program Files (x86)\StableDiffusionDeluxe\venv\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
C:\Program Files (x86)\StableDiffusionDeluxe\venv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Exception in thread Thread-244 (run_diffusion):
Traceback (most recent call last):
File "C:\Users\mahmo\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\mahmo\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Program Files (x86)\StableDiffusionDeluxe\venv\Stable-Diffusion-Deluxe.py", line 2701, in run_diffusion
start_diffusion(page)
File "C:\Program Files (x86)\StableDiffusionDeluxe\venv\Stable-Diffusion-Deluxe.py", line 16571, in start_diffusion
generator = torch.Generator("cuda").manual_seed(rand_seed)
RuntimeError: Device type CUDA is not supported for torch.Generator() api.

"Control must be added to the page first." error on Windows during ESRGAN installation

On Windows, after downloading ESRGAN, I get the following error. I suspect this is from Flet interaction code.

My workaround is to not install ESRGAN.

Future exception was never retrieved
future: <Future finished exception=AttributeError("'Container' object has no attribute '__name__'")>
Traceback (most recent call last):
  File "D:\Programs\StableDiffusionDeluxe\venv\Stable-Diffusion-Deluxe.py", line 2329, in run_installers
    b.update()
  File "D:\Programs\StableDiffusionDeluxe\venv\Lib\site-packages\flet_core\control.py", line 314, in update
    assert self.__page, "Control must be added to the page first."
AssertionError: Control must be added to the page first.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Eric\scoop\apps\python\3.11.3\Lib\concurrent\futures\thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\StableDiffusionDeluxe\venv\Lib\site-packages\flet_core\page.py", line 950, in wrapper
    handler(*args)
  File "D:\Programs\StableDiffusionDeluxe\venv\Stable-Diffusion-Deluxe.py", line 2331, in run_installers
    print(f"Failed ESRGAN block {b.__name__}")
                                 ^^^^^^^^^^
AttributeError: 'Container' object has no attribute '__name__'

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.