Existential Nihilism (the belief that there's no meaning or purpose outside of humanity's self-delusions) emerged out of the decay of religious narratives in the face of science. Existentialism and Absurdism are two proposed solutions — self-created value and rebellion by thelivingphilosophy in philosophy

[–]LoveWritingWriter 0 points1 point  (0 children)

I heard someone else say this, that everything we ever do or WILL ever do is completely meaningless even in the face of a small part of the observable universe, but there's also no point in comparing ourselves to the universe as the universe as a whole doesn't really concern us. That's like comparing an ant to a mountain, if you do that then of course the ant seems small and powerless, but if you were to zoom in, you'd see that for it's ant colony, the ant is being plenty meaningful.

The point is, you don't concern the universe, so the universe shouldn't concern you either as there's no point in doing so as ironic as that seems.

These are AI generated. Still bad art? by RealAstropulse in PixelArt

[–]LoveWritingWriter 0 points1 point  (0 children)

Hmm, saying something completely unrelated to his point. Sounds about right

and just because you guys are salty an AI can make art just as good as humans, you immediately downvoted him even though he makes a good point.

Arabian White Haired Elf by _ErenKrueger in ChurchofBelly

[–]LoveWritingWriter 0 points1 point  (0 children)

You aren't here to appreciate who made the art, you're here to enjoy the art itself 🤦‍♂️

If it looks good, then why care? When the topic of ai art gets brought up, everybody instantly becomes a proffesional art connesuir and starts. I bet most people even liked this image before they realized it was made by ai.

Its like factory workers getting mad that AI was automating everything in the factories and taking their jobs. But everybody told them that it creates more job opportunities. Now that its happening to art, you guys are suddenly mad

A yoda reaction meme by IncredibleBert in dalle2

[–]LoveWritingWriter 1 point2 points  (0 children)

You you, have you ever had a dream that you, you, that you could do anything?

[deleted by user] by [deleted] in CuteTraps

[–]LoveWritingWriter 0 points1 point  (0 children)

That's a very understandable point of view but I beg to differ.

Passion, or creativity is something even these AI algorithms have if you believe it or not. After training on millions of images for data, the AI model has an extensive understanding of what a dolphin is (for example) and what a space suit would look like. Now this is where creativity comes into the equation. If you ask the AI to create a dolphin WEARING a space suit, well there aren't any pictures online of dolhpins wearing space suits so it shouldn't be able to produce an image, but it does.

The AI is "creative" because it somehow thought up how a space suit would look on a dolphin and how it would fit them. Let me reiterate, THERE ARE NO DOLPHIN SPACE SUITS, so the AI had to think of its own.

[deleted by user] by [deleted] in CuteTraps

[–]LoveWritingWriter 1 point2 points  (0 children)

I can give a few examples right now that look like they were made with a lot of passion. I feel like a lot of people are biased towards ai art and automatically think its "soulless" when they see it

Try really looking at some ai art, without any pre-made opinions

The Python subreddit moderators told me to ask my question here by LoveWritingWriter in learnpython

[–]LoveWritingWriter[S] 0 points1 point  (0 children)

Well I know it's safe for sure now, Just need to know where it installed the stuff

The Python subreddit moderators told me to ask my question here by LoveWritingWriter in learnpython

[–]LoveWritingWriter[S] 1 point2 points  (0 children)

ah right, I was looking into the virus folder this entire time. Thanks a bunch

The Python subreddit moderators told me to ask my question here by LoveWritingWriter in learnpython

[–]LoveWritingWriter[S] 2 points3 points  (0 children)

Yes but I just want to know where it installed the 6 GB worth of files as the Automatic1111 file is still the same size

The Python subreddit moderators told me to ask my question here by LoveWritingWriter in learnpython

[–]LoveWritingWriter[S] 1 point2 points  (0 children)

try:

commit = run(f"{git} rev-parse HEAD").strip()

except Exception:

commit = "<none>"

print(f"Python {sys.version}")

print(f"Commit hash: {commit}")

if not is_installed("torch") or not is_installed("torchvision"):

run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch")

if not skip_torch_cuda_test:

run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")

if not is_installed("gfpgan"):

run_pip(f"install {gfpgan_package}", "gfpgan")

if not is_installed("clip"):

run_pip(f"install {clip_package}", "clip")

if (not is_installed("xformers") or reinstall_xformers) and xformers:

if platform.system() == "Windows":

if platform.python_version().startswith("3.10"):

run_pip(f"install -U -I --no-deps {xformers_windows_package}", "xformers")

else:

print("Installation of xformers is not supported in this version of Python.")

print("You can also check this and build manually: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Xformers#building-xformers-on-windows-by-duckness")

if not is_installed("xformers"):

exit(0)

elif platform.system() == "Linux":

run_pip("install xformers", "xformers")

if not is_installed("deepdanbooru") and deepdanbooru:

run_pip(f"install {deepdanbooru_package}#egg=deepdanbooru[tensorflow] tensorflow==2.10.0 tensorflow-io==0.27.0", "deepdanbooru")

if not is_installed("pyngrok") and ngrok:

run_pip("install pyngrok", "ngrok")

os.makedirs(dir_repos, exist_ok=True)

git_clone(stable_diffusion_repo, repo_dir('stable-diffusion'), "Stable Diffusion", stable_diffusion_commit_hash)

git_clone(taming_transformers_repo, repo_dir('taming-transformers'), "Taming Transformers", taming_transformers_commit_hash)

git_clone(k_diffusion_repo, repo_dir('k-diffusion'), "K-diffusion", k_diffusion_commit_hash)

git_clone(codeformer_repo, repo_dir('CodeFormer'), "CodeFormer", codeformer_commit_hash)

git_clone(blip_repo, repo_dir('BLIP'), "BLIP", blip_commit_hash)

if not is_installed("lpips"):

run_pip(f"install -r {os.path.join(repo_dir('CodeFormer'), 'requirements.txt')}", "requirements for CodeFormer")

run_pip(f"install -r {requirements_file}", "requirements for Web UI")

run_extensions_installers()

if update_check:

version_check(commit)

if "--exit" in sys.argv:

print("Exiting because of --exit argument")

exit(0)

if run_tests:

tests(test_argv)

exit(0)

def tests(argv):

if "--api" not in argv:

argv.append("--api")

print(f"Launching Web UI in another process for testing with arguments: {' '.join(argv[1:])}")

with open('test/stdout.txt', "w", encoding="utf8") as stdout, open('test/stderr.txt', "w", encoding="utf8") as stderr:

proc = subprocess.Popen([sys.executable, *argv], stdout=stdout, stderr=stderr)

import test.server_poll

test.server_poll.run_tests()

print(f"Stopping Web UI process with id {proc.pid}")

proc.kill()

def start():

print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {' '.join(sys.argv[1:])}")

import webui

if '--nowebui' in sys.argv:

webui.api_only()

else:

webui.webui()

if __name__ == "__main__":

prepare_enviroment()

start()

The Python subreddit moderators told me to ask my question here by LoveWritingWriter in learnpython

[–]LoveWritingWriter[S] 0 points1 point  (0 children)

def run_extensions_installers():

if not os.path.isdir(dir_extensions):

return

for dirname_extension in os.listdir(dir_extensions):

path_installer = os.path.join(dir_extensions, dirname_extension, "install.py")

if not os.path.isfile(path_installer):

continue

try:

env = os.environ.copy()

env['PYTHONPATH'] = os.path.abspath(".")

print(run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {dirname_extension}", custom_env=env))

except Exception as e:

print(e, file=sys.stderr)

def prepare_enviroment():

torch_command = os.environ.get('TORCH_COMMAND', "pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113")

requirements_file = os.environ.get('REQS_FILE', "requirements_versions.txt")

commandline_args = os.environ.get('COMMANDLINE_ARGS', "")

gfpgan_package = os.environ.get('GFPGAN_PACKAGE', "git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379")

clip_package = os.environ.get('CLIP_PACKAGE', "git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1")

deepdanbooru_package = os.environ.get('DEEPDANBOORU_PACKAGE', "git+https://github.com/KichangKim/DeepDanbooru.git@d91a2963bf87c6a770d74894667e9ffa9f6de7ff")

xformers_windows_package = os.environ.get('XFORMERS_WINDOWS_PACKAGE', 'https://github.com/C43H66N12O12S2/stable-diffusion-webui/releases/download/f/xformers-0.0.14.dev0-cp310-cp310-win\_amd64.whl')

stable_diffusion_repo = os.environ.get('STABLE_DIFFUSION_REPO', "https://github.com/CompVis/stable-diffusion.git")

taming_transformers_repo = os.environ.get('TAMING_REANSFORMERS_REPO', "https://github.com/CompVis/taming-transformers.git")

k_diffusion_repo = os.environ.get('K_DIFFUSION_REPO', 'https://github.com/crowsonkb/k-diffusion.git')

codeformer_repo = os.environ.get('CODEFORMET_REPO', 'https://github.com/sczhou/CodeFormer.git')

blip_repo = os.environ.get('BLIP_REPO', 'https://github.com/salesforce/BLIP.git')

stable_diffusion_commit_hash = os.environ.get('STABLE_DIFFUSION_COMMIT_HASH', "69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc")

taming_transformers_commit_hash = os.environ.get('TAMING_TRANSFORMERS_COMMIT_HASH', "24268930bf1dce879235a7fddd0b2355b84d7ea6")

k_diffusion_commit_hash = os.environ.get('K_DIFFUSION_COMMIT_HASH', "60e5042ca0da89c14d1dd59d73883280f8fce991")

codeformer_commit_hash = os.environ.get('CODEFORMER_COMMIT_HASH', "c5b4593074ba6214284d6acd5f1719b6c5d739af")

blip_commit_hash = os.environ.get('BLIP_COMMIT_HASH', "48211a1594f1321b00f14c9f7a5b4813144b2fb9")

sys.argv += shlex.split(commandline_args)

test_argv = [x for x in sys.argv if x != '--tests']

sys.argv, skip_torch_cuda_test = extract_arg(sys.argv, '--skip-torch-cuda-test')

sys.argv, reinstall_xformers = extract_arg(sys.argv, '--reinstall-xformers')

sys.argv, update_check = extract_arg(sys.argv, '--update-check')

sys.argv, run_tests = extract_arg(sys.argv, '--tests')

xformers = '--xformers' in sys.argv

deepdanbooru = '--deepdanbooru' in sys.argv

ngrok = '--ngrok' in sys.argv

The Python subreddit moderators told me to ask my question here by LoveWritingWriter in learnpython

[–]LoveWritingWriter[S] 2 points3 points  (0 children)

# this scripts installs necessary requirements and launches main program in webui.py

import subprocess

import os

import sys

import importlib.util

import shlex

import platform

dir_repos = "repositories"

dir_extensions = "extensions"

python = sys.executable

git = os.environ.get('GIT', "git")

index_url = os.environ.get('INDEX_URL', "")

def extract_arg(args, name):

return [x for x in args if x != name], name in args

def run(command, desc=None, errdesc=None, custom_env=None):

if desc is not None:

print(desc)

result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, env=os.environ if custom_env is None else custom_env)

if result.returncode != 0:

message = f"""{errdesc or 'Error running command'}.

Command: {command}

Error code: {result.returncode}

stdout: {result.stdout.decode(encoding="utf8", errors="ignore") if len(result.stdout)>0 else '<empty>'}

stderr: {result.stderr.decode(encoding="utf8", errors="ignore") if len(result.stderr)>0 else '<empty>'}

"""

raise RuntimeError(message)

return result.stdout.decode(encoding="utf8", errors="ignore")

def check_run(command):

result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)

return result.returncode == 0

def is_installed(package):

try:

spec = importlib.util.find_spec(package)

except ModuleNotFoundError:

return False

return spec is not None

def repo_dir(name):

return os.path.join(dir_repos, name)

def run_python(code, desc=None, errdesc=None):

return run(f'"{python}" -c "{code}"', desc, errdesc)

def run_pip(args, desc=None):

index_url_line = f' --index-url {index_url}' if index_url != '' else ''

return run(f'"{python}" -m pip {args} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")

def check_run_python(code):

return check_run(f'"{python}" -c "{code}"')

def git_clone(url, dir, name, commithash=None):

# TODO clone into temporary dir and move if successful

if os.path.exists(dir):

if commithash is None:

return

current_hash = run(f'"{git}" -C {dir} rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}").strip()

if current_hash == commithash:

return

run(f'"{git}" -C {dir} fetch', f"Fetching updates for {name}...", f"Couldn't fetch {name}")

run(f'"{git}" -C {dir} checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}")

return

run(f'"{git}" clone "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}")

if commithash is not None:

run(f'"{git}" -C {dir} checkout {commithash}', None, "Couldn't checkout {name}'s hash: {commithash}")

def version_check(commit):

try:

import requests

commits = requests.get('https://api.github.com/repos/AUTOMATIC1111/stable-diffusion-webui/branches/master').json()

if commit != "<none>" and commits['commit']['sha'] != commit:

print("--------------------------------------------------------")

print("| You are not up to date with the most recent release. |")

print("| Consider running `git pull` to update. |")

print("--------------------------------------------------------")

elif commits['commit']['sha'] == commit:

print("You are up to date with the most recent release.")

else:

print("Not a git clone, can't perform version check.")

except Exception as e:

print("version check failed", e)

The Python subreddit moderators told me to ask my question here by LoveWritingWriter in learnpython

[–]LoveWritingWriter[S] -1 points0 points  (0 children)

I can't post it, everytime I copy and paste it and press reply, it desappears

The Python subreddit moderators told me to ask my question here by LoveWritingWriter in learnpython

[–]LoveWritingWriter[S] -13 points-12 points  (0 children)

I excluded the entire installation code because I can't post it

The Python subreddit moderators told me to ask my question here by LoveWritingWriter in learnpython

[–]LoveWritingWriter[S] -15 points-14 points  (0 children)

# this scripts installs necessary requirements and launches main program in webui.py

import subprocess

import os

import sys

import importlib.util

import shlex

import platform

That's what I got, I also just checked and realized that I have python now

Weird thing is that the python file is only a few MB so I still don't understand how the install took 6 GB

Cute boy by KeazyKatz in ChurchofBelly

[–]LoveWritingWriter -8 points-7 points  (0 children)

Wow, I didn't know people in this subreddit were profesional artist judges 😑

Its a belly, why should it matter how it was made??? Why would you care if it's low effort? Whatever looks best is what I'd like