NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api
-
太难了,是不是我7g模型的问题...
-
@蔚蓝621
先按照示例测试简单的 tag 不行吗
/nai-fu swimsuit
然后再到 测试复杂的
/nai-fu "nsfw,*1,best quality, illustration,(beautiful detailed girl),beautiful detailed glow,smile,gigantic breasts,cum on breasts,detailed ice,(beautiful detailed eyes),beautiful detailed white gloves, lying on bed,azure hair,disheveled hair,long bangs,hairs between eyes, (skyblue dress),black ribbon,white bowties,midriff,big forhead,blank stare,flower,large top sleeves"
-
测试了,都一样
2022-10-27 23:02:13 I/novelai-helper: generate image seed: 2541417154, tags: swimsuit 2022-10-27 23:02:14 W/novelai-helper: Exception in executing command `[mirai:source:ids=[59343], internalIds=[1167067912], from group 769970280 to 172895221 at 1666882931]/nai-fu swimsuit` io.ktor.serialization.JsonConvertException: Illegal input at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.serialization.kotlinx.KotlinxSerializationConverter.deserialize(KotlinxSerializationConverter.kt:79) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.serialization.ContentConverterKt$deserialize$$inlined$map$1$2.emit(Emitters.kt:224) at kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3.collect(SafeCollector.common.kt:115) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.serialization.ContentConverterKt$deserialize$$inlined$map$1.collect(SafeCollector.common.kt:113) at kotlinx.coroutines.flow.FlowKt__ReduceKt.firstOrNull(Reduce.kt:243) at kotlinx.coroutines.flow.FlowKt.firstOrNull(Unknown Source) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.serialization.ContentConverterKt.deserialize(ContentConverter.kt:128) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.contentnegotiation.ContentNegotiation.convertResponse$ktor_client_content_negotiation(ContentNegotiation.kt:185) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.contentnegotiation.ContentNegotiation$Plugin$install$2.invokeSuspend(ContentNegotiation.kt:210) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.contentnegotiation.ContentNegotiation$Plugin$install$2.invoke(ContentNegotiation.kt) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.contentnegotiation.ContentNegotiation$Plugin$install$2.invoke(ContentNegotiation.kt) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:123) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:81) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.HttpClient$4.invokeSuspend(HttpClient.kt:173) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.HttpClient$4.invoke(HttpClient.kt) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.HttpClient$4.invoke(HttpClient.kt) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:123) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:81) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.proceedWith(SuspendFunctionGun.kt:91) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.compression.ContentEncoding$Companion$install$2.invokeSuspend(ContentEncoding.kt:144) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.compression.ContentEncoding$Companion$install$2.invoke(ContentEncoding.kt) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.compression.ContentEncoding$Companion$install$2.invoke(ContentEncoding.kt) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:123) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:81) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.proceedWith(SuspendFunctionGun.kt:91) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator$Companion$install$2.invokeSuspend(HttpCallValidator.kt:138) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator$Companion$install$2.invoke(HttpCallValidator.kt) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator$Companion$install$2.invoke(HttpCallValidator.kt) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:123) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:81) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:101) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.call.HttpClientCall.bodyNullable(HttpClientCall.kt:88) at novelai-helper-1.1.0.mirai2.jar//xyz.cssxsh.novelai.NovelAiClient$http$1$3$1.invokeSuspend(NovelAiClient.kt:114) at novelai-helper-1.1.0.mirai2.jar//xyz.cssxsh.novelai.NovelAiClient$http$1$3$1.invoke(NovelAiClient.kt) at novelai-helper-1.1.0.mirai2.jar//xyz.cssxsh.novelai.NovelAiClient$http$1$3$1.invoke(NovelAiClient.kt) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator.validateResponse(HttpCallValidator.kt:47) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator.access$validateResponse(HttpCallValidator.kt:40) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator$Companion$install$3.invokeSuspend(HttpCallValidator.kt:148) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Caused by: kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 2: Encountered an unknown key 'detail' at path: $ Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys. JSON input: {"detail":"Not Found"} at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24) at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(AbstractJsonLexer.kt:528) at kotlinx.serialization.json.internal.AbstractJsonLexer.failOnUnknownKey(AbstractJsonLexer.kt:523) at kotlinx.serialization.json.internal.StreamingJsonDecoder.handleUnknown(StreamingJsonDecoder.kt:201) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeObjectIndex(StreamingJsonDecoder.kt:187) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeElementIndex(StreamingJsonDecoder.kt:121) at novelai-helper-1.1.0.mirai2.jar//xyz.cssxsh.novelai.NovelAiApiError$$serializer.deserialize(NovelAiApiError.kt:5) at novelai-helper-1.1.0.mirai2.jar//xyz.cssxsh.novelai.NovelAiApiError$$serializer.deserialize(NovelAiApiError.kt:5) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:38) at kotlinx.serialization.json.Json.decodeFromString(Json.kt:100) at novelai-helper-1.1.0.mirai2.jar[private]//io.ktor.serialization.kotlinx.KotlinxSerializationConverter.deserialize(KotlinxSerializationConverter.kt:71) ... 49 more
-
@蔚蓝621
你是本地搭建 还是 colab ? -
@cssxsh 本地,按照https://mirai.mamoe.net/topic/1659/
-
-
@cssxsh 难怪,麻烦了
-
用colab搭建的,第一次能生成,然后第二次生成时被cf的人机验证挡掉了
-
@CAB233
colab 不是提供了两种 不同的域名配置吗,换一种试试看 -
Invalid Authorization header content.
是怎么回事呢 -
-
@cssxsh 好的好的,谢谢
-
colab的话就是吧这个填到配置吗
-
@dragon
你能放到浏览器打开访问 就是 -
@dragon
话说你这个是 Naifu 的吗
日志看着不像我这个对接的是 官方api 和 Naifu
-
@cssxsh 俺这个是webui的,那好像不行(
-
太强了!
-
naifu调用时会自动在uri上拼接 generate-stream 导致404
-
@yuanbolin 在 NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api 中说:
naifu调用时会自动在uri上拼接 generate-stream 导致404
没事了,源码里找到了。我尝试下删除重新打包
-
@yuanbolin 在 NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api 中说:
@yuanbolin 在 NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api 中说:
naifu调用时会自动在uri上拼接 generate-stream 导致404
没事了,源码里找到了。我尝试下删除重新打包
gg 打完jar包启动失败