Hi and thank you for this great idea of making SD available in react-native with iOS.
I have tried to run the example you have given in the repository in my iPhone 13 Pro Max but I do not get any response from 'loadModel' method it awaits there forever no errors,warnings or whatsoever. its stuck at loading model log
What am I missing ? @andrei-zgirvaci
const MODEL_PATH = FileSystem.documentDirectory + "coreml-stable-diffusion-2-1";
const SAVE_PATH = FileSystem.cacheDirectory + "image.jpeg";
export default function App() {
const loadModel = async () => {
console.log("loading model");
await ExpoStableDiffusion.loadModel(MODEL_PATH);
console.log("loaded model");
};
const generateImage = async () => {
console.log("generating");
await ExpoStableDiffusion.generateImage({
prompt: "a photo of an astronaut riding a horse on mars",
stepCount: 25,
savePath: SAVE_PATH,
});
console.log("generated");
};
return (
<View style={styles.container}>
<Text>Testing Expo Stable Diffusion</Text>
<Button onPress={loadModel} title="Load the Model" />
<Button onPress={generateImage} title="Generate the image" />
</View>
);
}