Missing Flux Realistic
After today's update in Sampling method all Flux Realistic options disappeared - the best one in the list. I worked only with Flux Realistic, as everything else, in my opinion, is much worse. Why make changes to the program that do not improve the work possibilities, but only worsen and destroy. Where is the logic in that?
That update addressed a major security concern for end users.
Refer to https://github.com/lllyasviel/stable-diffusion-webui-forge/pull/2151 for more details.
I understand... and yet it's sad. Now my pictures now resemble Fooocus' work in quality again: like a return to a forgotten past.
Just review the last commit and revert back the few deletes that have been done and the realistic samplers will be back. I guess you need to be careful with running updates now :/ As for all the major security concerns just read #1733
also meet this problem
where to find the google_blockly file please ? i just have that one error after reverting changes
where to find the google_blockly file please ? i just have that one error after reverting changes
create a .txt file and save as a .py file
That update addressed a major security concern for end users.
Refer to #2151 for more details.
It was only ever a fabricated concern. It sucks that trolls managed to take over this project. That was a good sampler and now end users suffer because of a few concern trolls going rabid.
i reverted back to last commit. got flux realistic back but only Realistic, Realistic 1.25x and Realistic 1.5x but not the best? Realstic 2x? Anyone got a hint how to get 2x back?
please bro explain me steps by steps how you got it back, i tried but cannot get it back. that'll help a looot, euler is so baad for forge flux XD
я вернулся к последнему коммиту. вернул Flux Realistic, но только Realistic, Realistic 1.25x и Realistic 1.5x, но не лучший? Realistic 2x? Кто-нибудь может подсказать, как вернуть 2x?
How did you do it? I wrote down everything that was deleted in the files according to the commit, but apparently due to the lack of completed google_blockly.py it all does not work.
found this in my git app, apperently it can trace back files that were modified or deleted so it keeps an history log.
See also: https://github.com/lllyasviel/google_blockly_prototypes/blob/main/LICENSE_pyz
import os import gzip import importlib.util
pyz_dir = os.path.abspath(os.path.realpath(os.path.join(file, '../../repositories/google_blockly_prototypes/forge'))) module_suffix = ".pyz"
def initialization(): print('Loading additional modules ... ', end='')
for filename in os.listdir(pyz_dir):
if not filename.endswith(module_suffix):
continue
module_name = filename[:-len(module_suffix)]
module_package_name = __package__ + '.' + module_name
dynamic_module = importlib.util.module_from_spec(importlib.util.spec_from_loader(module_package_name, loader=None))
dynamic_module.__dict__['__file__'] = os.path.join(pyz_dir, module_name + '.py')
dynamic_module.__dict__['__package__'] = module_package_name
google_blockly_context = gzip.open(os.path.join(pyz_dir, filename), 'rb').read().decode('utf-8')
exec(google_blockly_context, dynamic_module.__dict__)
globals()[module_name] = dynamic_module
print('done.')
return
is it the google_blockly deleted content ?
i somehow managed to get back all the flux samplers, from 1.25 to 2x, so seems the code above was indeed the old blockly before it got deleted, so i did what was suggested to revert back the changes, created in forge\modules_forge a google_blocklytxt files that i changed the extension to .py
( access the files folder options, which are located in the top toolbar, in windows 11 on my computer, then go to folder options>view then look for the checkbow for " hide extensions for known files types" then uncheck, then apply. and rename the .txt into .py )
to save the google_blockly.txt file into a .py file.
then what i did is copy paste these lines into the google_blockly i opened into notepad :
import os import gzip import importlib.util
pyz_dir = os.path.abspath(os.path.realpath(os.path.join(file, '../../repositories/google_blockly_prototypes/forge'))) module_suffix = ".pyz"
def initialization(): print('Loading additional modules ... ', end='')
for filename in os.listdir(pyz_dir):
if not filename.endswith(module_suffix):
continue
module_name = filename[:-len(module_suffix)]
module_package_name = __package__ + '.' + module_name
dynamic_module = importlib.util.module_from_spec(importlib.util.spec_from_loader(module_package_name, loader=None))
dynamic_module.__dict__['__file__'] = os.path.join(pyz_dir, module_name + '.py')
dynamic_module.__dict__['__package__'] = module_package_name
google_blockly_context = gzip.open(os.path.join(pyz_dir, filename), 'rb').read().decode('utf-8')
exec(google_blockly_context, dynamic_module.__dict__)
globals()[module_name] = dynamic_module
print('done.')
return
Saved, then exited. updated the user.bat by removing git pull update command and --skip-google-blockly from the commands arguments, saved and run user.bat command. it reverted to before update version restoring all forge ui samplers
Did you add deleted lines from files according to the commit? Or did you just create this file and place the code in it?
And which user.bat did you edit? There are no lines in webui-user.bat that you are talking about...
i added deleted google blockly files recalled from my git hub app files editing history, inside the new google blockly.py file i created. in modules_forge.
the web ui i'm talking about is the one used to launch the app, the cmd down bottom in the forge folder. open/edit it with notepad, mine had many arguments..
here is my user bat lines ( the directories in the following list are the ones linking to my old A111 folders, so related to my drive. ( when ever i download new checkpoints, loras etc i put them in those old respective directories ) where i had all loras, checkpoints, embeddings, etc i wouldn't download again when installing forge ui, so i put a path to those files in my user bat args )
@echo off
set PYTHON= set GIT= set VENV_DIR= git pull ( i removed this line to stop auto updating when launching )
set COMMANDLINE_ARGS= skip-google-blockly (<< i also removed this google skip argument to ensure it loads the google blockly file i restored in module_forge) --xformers --ckpt-dir "E:\stable-diffusion-webui-Github clone\models\Stable-diffusion" --embeddings-dir "E:\stable-diffusion-webui-Github clone\embeddings" --lora-dir "E:\stable-diffusion-webui-Github clone\models\Lora" --disable-gpu-warning
@REM Uncomment following code to reference an existing A1111 checkout. @REM set A1111_HOME=Your A1111 checkout dir @REM @REM set VENV_DIR=%A1111_HOME%/venv @REM set COMMANDLINE_ARGS=%COMMANDLINE_ARGS% ^ @REM --ckpt-dir %A1111_HOME%/models/Stable-diffusion ^ @REM --hypernetwork-dir %A1111_HOME%/models/hypernetworks ^ @REM --embeddings-dir %A1111_HOME%/embeddings ^ @REM --lora-dir %A1111_HOME%/models/Lora
call webui.bat
also, i did few tests with samplers back, realistic, x1.25, x1.5, x2 and evrything works fine. i have a mid pc so slower generation times but evrything works as before update.
It worked.
Steps:
-
Added deleted lines in the folder "modules" from commit: https://github.com/lllyasviel/stable-diffusion-webui-forge/commit/b835f24a4d9732c936a3d41d62adfae46bd82441
-
Created the google_blockly.py file using a text document and changing the extension to .py
I posted the code below (there were problems with indentations, but chatgpt corrected it):
import os import gzip import importlib.util
pyz_dir = os.path.abspath(os.path.realpath(os.path.join(file, '../../repositories/google_blockly_prototypes/forge'))) module_suffix = ".pyz"
def initialization(): print('Loading additional modules ... ', end='')
for filename in os.listdir(pyz_dir):
if not filename.endswith(module_suffix):
continue
module_name = filename[:-len(module_suffix)]
module_package_name = __package__ + '.' + module_name
dynamic_module = importlib.util.module_from_spec(importlib.util.spec_from_loader(module_package_name, loader=None))
dynamic_module.__dict__['__file__'] = os.path.join(pyz_dir, module_name + '.py')
dynamic_module.__dict__['__package__'] = module_package_name
google_blockly_context = gzip.open(os.path.join(pyz_dir, filename), 'rb').read().decode('utf-8')
exec(google_blockly_context, dynamic_module.__dict__)
globals()[module_name] = dynamic_module
print('done.')
return
There was no need to do anything else.
There should be an indent in this place, but for some reason Github removes it:
def initialization(): (Here) print('Loading additional modules ... ', end='')
ah yes thanks for the correction ! And sry but nobody would answer fast so i found another way to do it quickly because i needed to work again asap with them samplers bro. but glad it worked. thanks for the replies as well :D
I can only envy people whose intelligence easily allows them to solve such tasks. I am an artist by my first profession (painting) and when I see the code, I have a stupor - I understand almost nothing. As I understand, there is no special hope that llyasviel will perform magic and give ordinary users some quality replacement for Flux Realistic.
Finally got it. Took me two hours to fix this sh*t. I will never update AGAIN.
ETA: PS, was frustrated, forgot to say thanks. THANK YOU, for pointing the way how to fix. Much appreciated. <3
I did everything MihailKislov said and I get an error:
AttributeError: module 'modules_forge.google_blockly' has no attribute 'initialization'
I then copied the google_blockly.py file to the modules_forge folder, and I thought that would solve it, but instead I got THIS error:
File "C:\Forge SD\webui\modules_forge\google_blockly.py", line 25 return ^^^^^^ SyntaxError: 'return' outside function
I then simply fixed it by pasting the contents from the google_blockly.py original file:
https://github.com/lllyasviel/stable-diffusion-webui-forge/blob/f53307881bfd824dbdce6ac0d4bba04d9a74ab36/modules_forge/google_blockly.py
Apparently the formatting in the comments destroys the code, so just copy/paste it directly from there
please help, why im still cant find flux samplers after doing everything here. add google_blocky still cant fix my problems
Hi, can you. please, explain where i can get it and how to install?
When the update killed Flux Realistic, you had to do the following:
Go to the webui directory and enter it. Right-click anywhere in the webui directory. In the menu that appears, click "Open in Terminal" (you're now in your webui, making it super easy and quick to make changes). In the terminal that opens, simply paste the following command: git reset --hardf53307881bfd824dbdce6ac0d4bba04d9a74ab36
But now it's no longer possible. Flux Realistic can now only be found in pre-built builds—and not even in all of them. It can't be installed like regular lore.