MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api

    插件发布
    novelai ai 图片生成
    54
    232
    45675
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 蔚
      蔚蓝621 last edited by 蔚蓝621

      太难了,是不是我7g模型的问题...

      cssxsh 1 Reply Last reply Reply Quote 0
      • cssxsh
        cssxsh @蔚蓝621 last edited by cssxsh

        @蔚蓝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"

        1 Reply Last reply Reply Quote 0
        • 蔚
          蔚蓝621 last edited by

          测试了,都一样

          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
          
          cssxsh 1 Reply Last reply Reply Quote 0
          • cssxsh
            cssxsh @蔚蓝621 last edited by

            @蔚蓝621
            你是本地搭建 还是 colab ?

            蔚 1 Reply Last reply Reply Quote 0
            • 蔚
              蔚蓝621 @cssxsh last edited by

              @cssxsh 本地,按照https://mirai.mamoe.net/topic/1659/

              cssxsh 1 Reply Last reply Reply Quote 0
              • cssxsh
                cssxsh @蔚蓝621 last edited by

                @蔚蓝621

                我对接的是 NAIFU而不是stable-diffusion-webui

                接口不一样

                蔚 A 2 Replies Last reply Reply Quote 0
                • 蔚
                  蔚蓝621 @cssxsh last edited by

                  @cssxsh 难怪,麻烦了

                  1 Reply Last reply Reply Quote 0
                  • C
                    CAB233 last edited by

                    用colab搭建的,第一次能生成,然后第二次生成时被cf的人机验证挡掉了

                    cssxsh 1 Reply Last reply Reply Quote 0
                    • cssxsh
                      cssxsh @CAB233 last edited by

                      @CAB233
                      colab 不是提供了两种 不同的域名配置吗,换一种试试看

                      1 Reply Last reply Reply Quote 0
                      • D
                        dragon last edited by

                        Invalid Authorization header content.
                        是怎么回事呢

                        cssxsh 1 Reply Last reply Reply Quote 0
                        • cssxsh
                          cssxsh @dragon last edited by

                          @dragon

                          /nai 是官方的api需要登录
                          /nai-fu 是本地/colab 搭建,需要配置api url

                          请自己注意区别

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            dragon @cssxsh last edited by

                            @cssxsh 好的好的,谢谢

                            1 Reply Last reply Reply Quote 0
                            • D
                              dragon last edited by cssxsh

                              colab的话就是吧这个填到配置吗0.png

                              cssxsh 2 Replies Last reply Reply Quote 0
                              • cssxsh
                                cssxsh @dragon last edited by

                                @dragon
                                你能放到浏览器打开访问 就是

                                1 Reply Last reply Reply Quote 0
                                • cssxsh
                                  cssxsh @dragon last edited by

                                  @dragon
                                  话说你这个是 Naifu 的吗
                                  日志看着不像

                                  我这个对接的是 官方api 和 Naifu

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    dragon @cssxsh last edited by

                                    @cssxsh 俺这个是webui的,那好像不行(

                                    1 Reply Last reply Reply Quote 0
                                    • N
                                      Niko_Sakura last edited by

                                      太强了!

                                      1 Reply Last reply Reply Quote 0
                                      • Y
                                        yuanbolin last edited by

                                        naifu调用时会自动在uri上拼接 generate-stream 导致404

                                        Y 1 Reply Last reply Reply Quote 0
                                        • Y
                                          yuanbolin @yuanbolin last edited by

                                          @yuanbolin 在 NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api 中说:

                                          naifu调用时会自动在uri上拼接 generate-stream 导致404

                                          没事了,源码里找到了。我尝试下删除重新打包

                                          Y 1 Reply Last reply Reply Quote 0
                                          • Y
                                            yuanbolin @yuanbolin last edited by

                                            @yuanbolin 在 NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api 中说:

                                            @yuanbolin 在 NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api 中说:

                                            naifu调用时会自动在uri上拼接 generate-stream 导致404

                                            没事了,源码里找到了。我尝试下删除重新打包

                                            gg 打完jar包启动失败

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 11 / 12
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact