-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
BUG: Symbolic Link gets wipe out #12
Comments
Another time symbolic link get wiped out is when Fooocus crash hard. I try to generate without using Refinner. I was testing |
@barepixels You're right, it seems git sees symlinks as changes. Please try with directory junctions, like that:
PS If you don't mind old school Norton Commander style UI (I am old, I know 😂), you can use Far Manager - it makes creating links a bit easier (by simply pressing Alt-F6, and then selecting link type). |
Will report back |
/j also get wipe out like /d |
@barepixels Strange - junctions worked for me. I am out for the weekend, but we can back to this later on, like check results step by step, after each command. |
it work for me too ... till I had a crash ... upon relaunch symlinks were gone. similar to /d I redo symlinks, it's working now again. will let you know if it happens again |
After seeing xiaoyoucheng mentioned this issue 17 hours ago I decided to quit Fooocus MRE CMD window and relaunch BAMM symlinks with /J gone. Fooocus MRE replaced symlinks with folders and starts to download safetensors |
@barepixels: I did simple test, like that: then changed branches (between main and moonride-main) and launched Fooocus few times (via I also use hardlinks for single files for a long time (those are limited to single drive) created with Far Manager (allows to do things like hardlinks for 100 files in few seconds), and never had any issues with those, either. Could you post exact commands you used, and also information how do you launch Fooocus? |
then I launch run-moonride.bat |
@barepixels Could you provide content of that |
.\python_embeded\python.exe -s Fooocus-MoonRide\entry_with_update.py From this instruction #1 Should I be using launch.py in Fooocus-MoonRide folder? |
@barepixels As Anaconda user I never needed to use standalone Python. I will take a look at that distribution from original Fooocus, and see how it works - and then if I can reproduce this issue. |
I appreciate your help. Is it that hard or time-consuming to just add the paths to setting.json? Wish list: modelfile_path = BTW other have symlinks problem too: lllyasviel#161 |
@barepixels I guess you might be right - for most normal users it would be probably much easier to simply setup the paths via settings file rather than having to struggle with mklink, or wondering why those links are getting destroyed. I'll do it this way. As for parameters related to generating images I was thinking about having another json with default prompt parameters - stuff like default style would go there, then. |
@barepixels Done (customizing paths), available on moonride-main - let me know if works for you. |
Confirm, paths.json works. TIP for some people: THANK YOU |
Okay, closing then - btw. I've just enhanced settings.json - you can now customize default style, and also many other settings :). |
@barepixels Sorry to bother you. Looking for this information made me very happy, but when I tried to operate it, it couldn't achieve the effect. Modifying the folder location according to the prompts you mentioned didn't work. I don't know how to achieve the goal after repeated modifications (please refer to the attached file), please guide me! Thank you! |
@hzeasy Please make sure that:
Content of sample working customized paths.json file:
|
@MoonRide303 Thank you for your help. The path issue has been resolved because I have been keeping the original paths example. json and changing it to paths. json will work fine. However, I have encountered other issues during runtime recently, but there is no need to resolve them in a timely manner. I would like to wait for you to update the MRE before trying again. Thank you! |
@MoonRide303 Hello, the previous issue has been resolved, but a new fault has been introduced: click“ 📔 Current Log 📔 The 'Previous Log' will display a 'detail': 'File not found:./outputs/2023-09-16/log. html.' This prompt is known to be caused by a change in the path, but I am not sure where to fix it. If possible, please let me know. Thank you. |
@hzeasy Did you generate any images on that machine (current / previous day)? Those links need existing log files to work, and those files are created when you're generating images on given machine. |
@MoonRide303 Yes, the image was output at the specified path normally, and the log.html file is also available, but it cannot be called in the UI. |
@MoonRide303 The path issue has been resolved after updating to version 2.0.19, including some other minor issues. And I also found that the Control-LoRA in CN has changed to a folding option. If it's to make room for adding more LORA control functions? If it's true, that would be great! I think the advantage of using MRE lies in its control, and even in version 1.0, I made a video introducing MRE and promoted it on Bilibili. Thank you for your MRE upgrade work. Wishing you success in your work! |
@hzeasy Yeah, I will be looking into either more CNs / Control-LoRAs, and/or IP-Adapters - but I'd need to make sure it's easy to use and providing high quality results, first (like Canny and Depth, or Revision workflow, which are working pretty well - but it's not so obvious for other models / workflows like Recolor). |
@MoonRide303 oh! That's really worth looking forward to. It shouldn't be easy to implement them. IP-Adapters is indeed a very good feature, but please keep fooocus' optimized performance, because currently my 3060-6G graphics card can use CN very well, even if I combine Canny and There is no problem if Depth is started at the same time.. |
@hzeasy Today I will need to fix some bugs - it seems all that VM code from vanilla wasn't compatible with current Comfy, and newer MRE versions (after v2.0.14) don't work on lower end machines (when trying to use refiner). Update: fixed in v2.0.19 (disabled that VM from vanilla, that was causing problems when used with new Comfy - and it's not really needed with new Comfy, which automates most of the model memory management). |
Update: fixed in v2.0.19 (disabled that VM from vanilla, that was causing problems when used with new Comfy - and it's not really needed with new Comfy, which automates most of the model memory management). @MoonRide303 I'm so excited to share what you're doing. I'm a layman on programming codes, so I usually can only turn to ChatGPT, haha. I tested lllyasviel version 2.0.62 today and encountered a GPU memory problem after simply taking out 3 pictures.This situation occasionally occurred in previous MRE versions, and I think it should be optimized.I asked lllyasviel this question。 |
@lllyasviel I get the same errors using the latest vanilla Fooocus 2.0.62 UPDATE: It seem to go away. No longer have the errors. Wondering what changes did I made. |
Got symbolic links working (thanks) but whenever Fooocus update, it deletes symbolic links and replace with actual folders and starts download missing safetensors. Link to Symbolic Link tutorial https://youtu.be/RDH5IuyPJtk
My current solution is hard code modules/path.py
Before
modelfile_path = os.path.abspath(os.path.join(os.path.dirname(file), '../models/checkpoints/'))
lorafile_path = os.path.abspath(os.path.join(os.path.dirname(file), '../models/loras/'))
After
modelfile_path = os.path.abspath(os.path.join(os.path.dirname(file), 'D:\stable-diffusion-shared\Ckpt\XL'))
lorafile_path = os.path.abspath(os.path.join(os.path.dirname(file), 'D:\stable-diffusion-shared\Lora\SDXL'))
The text was updated successfully, but these errors were encountered: