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

Loading models process gets stuck #59

Open
fcolecumberri opened this issue Aug 14, 2024 · 1 comment
Open

Loading models process gets stuck #59

fcolecumberri opened this issue Aug 14, 2024 · 1 comment

Comments

@fcolecumberri
Copy link

My system:

16:56:36.384 › App ready: {
  version: '1.20.2',
  platform: 'linux',
  platformVersion: '6.9.9-zen1-1-zen',
  arch: 'x64'
}

This is related to #58 in the sense that there is no progress in hours.
The Files tab says I only have 553 models (by far, way less than what I have).
It's showing me no Lora (except for a few I downloaded with the app). Also no LyCORIS, etc.

@fcolecumberri
Copy link
Author

fcolecumberri commented Aug 14, 2024

Ok, I managed to make this works by changing:

  try {
    const { modelHash, metadata } = await pool.exec('processTask', [pathname]);

for

  try {
    if(!pathname.endsWith(".safetensors")){
      new Error(`${pathname} is not a safetensors file`);
    }
    const { modelHash, metadata } = await pool.exec('processTask', [pathname]);

In https://github.com/civitai/civitai-link-desktop/blob/main/src/main/folder-watcher.ts

However I am not going to make a PR since I don't know if this is the best way to handle this (I almost never touches js and this is my first time ever to touch an electron code, I am more like a C++/Python dev, I have no idea if this is the way to do stuff).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant