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

[Report]: what is going on with the output? #650

Closed
SonicSaber opened this issue Jun 29, 2024 · 2 comments
Closed

[Report]: what is going on with the output? #650

SonicSaber opened this issue Jun 29, 2024 · 2 comments
Labels
bug Something isn't working Stale

Comments

@SonicSaber
Copy link

Describe the bug

I do cleaning a cache a lot, so ADetailer will always redownload them when I start webui
it does look as it should on my local Windows

the screenshot is from Kaggle Linux Jupyter Notebook.

it does not look like this before, I don't remember which version tho.

Steps to reproduce

run stable diffusion webui with adetailer installed on jupyter notebook.

Screenshots

a

kaggle

Console logs, from start to end.

Python 3.10.13 | packaged by conda-forge | (main, Dec 23 2023, 15:36:39) [GCC 12.3.0]
Version: 1.9.4
Commit hash: feee37d75f1b168768014e4634dcb156ee649c05

[-] ADetailer initialized. version: 24.6.0, num models: 18

List of installed extensions

No response

@SonicSaber SonicSaber added the bug Something isn't working label Jun 29, 2024
Copy link

dosubot bot commented Jun 29, 2024

Hello @SonicSaber! I'm here to assist you with any bugs, questions, or contributions while we wait for a human maintainer. Let's tackle this together!

The issue you're experiencing with ADetailer redownloading files every time you start the webui on a Kaggle Linux Jupyter Notebook is likely due to the environment not retaining the downloaded files between sessions. Kaggle notebooks typically reset their state when restarted, which means any files downloaded during a session are lost when the session ends.

To fix this, you can try the following steps:

  1. Persistent Storage: Use Kaggle's persistent storage options to save the downloaded files. Kaggle provides a /kaggle/working directory that can be used to store files persistently across sessions.

  2. Modify the Installation Path: Change the installation path of ADetailer to a directory that persists across sessions. You can do this by modifying the installation script to download and install ADetailer in the /kaggle/working directory.

Here is an example of how you can modify the installation script:

import os

# Define the persistent directory
persistent_dir = '/kaggle/working/adetailer'

# Create the directory if it doesn't exist
os.makedirs(persistent_dir, exist_ok=True)

# Clone the ADetailer repository into the persistent directory
!git clone https://github.com/Bing-su/adetailer.git {persistent_dir}

# Install ADetailer from the persistent directory
!pip install -e {persistent_dir}
  1. Automate the Setup: Create a setup script that runs every time you start the notebook. This script should check if ADetailer is already installed in the persistent directory and install it if not.

Here is an example setup script:

import os

# Define the persistent directory
persistent_dir = '/kaggle/working/adetailer'

# Check if ADetailer is already installed
if not os.path.exists(persistent_dir):
    # Clone the ADetailer repository into the persistent directory
    !git clone https://github.com/Bing-su/adetailer.git {persistent_dir}

# Install ADetailer from the persistent directory
!pip install -e {persistent_dir}

By using these steps, you can ensure that ADetailer is installed in a directory that persists across Kaggle notebook sessions, preventing the need to redownload files every time you start the webui [1].

To continue talking to Dosu, mention @dosu.

@Bing-su
Copy link
Owner

Bing-su commented Jul 3, 2024

This looks normal to me. Please be more specific about what you are reporting as an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

2 participants