Stable-Diffusion-Android icon indicating copy to clipboard operation
Stable-Diffusion-Android copied to clipboard

Maybe something wrong with custom model

Open Ar57m opened this issue 1 year ago • 4 comments

it appears that the app wants 2 tokenizer_config.json in the same folder, which is impossible. On presentation/src/main/java/com/shifthackz/aisdv1/presentation/screen/setup/ServerSetupScreen.kt line 618 do you mean vocab.json?

Screenshot_20240209_074816_SDAI FOSS

Another question, I converted to ort successfully this, right here do I use the model.with_runtime_opt.ort or the normal one? and does the app needs the model_index.json?

Ar57m avatar Feb 09 '24 11:02 Ar57m

another thing, is the folder vae_encoder not needed?

Ar57m avatar Feb 09 '24 14:02 Ar57m

The correct folder structure should be: image

Regarding your oher questions:

do you mean vocab.json?

Yes, vocab.json shoud be there.

do I use the model.with_runtime_opt.ort or the normal one?

I used a regular model.ort in my experiments.

and does the app needs the model_index.json?

another thing, is the folder vae_encoder not needed?

Current implementation does not use model_index.json and vae_encoder, but it may change in future implementation.

ShiftHackZ avatar Feb 10 '24 11:02 ShiftHackZ

Another question, I converted to ort successfully this, right here

Thanks for replying, tried running it but got this error, it's a sd turbo model. Screenshot_20240210_084421_SDAI FOSS

tried this too but got other error(forgot to screenshot)

Ar57m avatar Feb 10 '24 12:02 Ar57m

here sdturbo I converted to onnx, but got an error while converting it to ort

Error converting /content/sdturbo/unet/model.onnx: [ONNXRuntimeError] : 1 : FAIL : inference_session.cc:806 SaveToOrtFormat Failed to save ORT format model to file: /content/converted/unet/model.ort Converting

Ar57m avatar Feb 16 '24 12:02 Ar57m