civitai / civitai Goto Github PK
View Code? Open in Web Editor NEWA repository of models, textual inversions, and more
Home Page: https://civitai.com
License: Apache License 2.0
A repository of models, textual inversions, and more
Home Page: https://civitai.com
License: Apache License 2.0
I was adding a model file to a model version that was already created and set as published. A pruned model. But getting the following after saving the model.
Could not save model
Something went wrong: An error occurred while saving the model: Invalid prisma.model.update()
invocation: Unique constraint failed on the fields: (modelVersionId
,type
,format
)
New added model file is uploaded and saved to the model and update the model version with the new pruned file.
Linux
Mozilla Firefox
I additionally tried to change the name of the model version but it did not change it.
Inpainting models aren't working right because the filename is changed when downloaded (or uploaded), which removes the -inpainting
suffix at the end of the filename. The filename has to end with -inpainting.ckpt
in order to work as an inpainting model in Auto1111. There is a PR for Auto1111 that changes this behavior that will recognize inpainting models without the suffix, but I don't think it has been implemented yet. Does Civitai rename the files when they are uploaded or downloaded?
-inpainting
at the end, before the .ckpt extension, to get it to workThe filename has to keep the -inpainting
suffix at the end in order for Auto1111 to recognize the model as an inpainting model.
Windows
Microsoft Edge
No response
Tried to sign in using GitHub, got redirected to http://localhost:3000/api/auth/callback/github?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=REDACTED
A successful sign-in.
No response
No response
No response
Suddenly Civitai is overburdened with a lot of jank time, and slow loading. Additionally, scrolling is no longer smooth. It's very jerky/stuttery.
Checking online, the site gets a performance score of C or D (and fluctuating, whether server performance or scripting performance), which ain't good.
One of the biggest factors is the image delivery. It's using cookies, which is unnecessary traffic as the server will ignore them. Need a proper CDN or a subdomain distributor that is cookie-free.
Setup:
Core i9 13900KF (Up to 5.8Ghz Boost)
32GB 5600MHz DDR5
SN570 NVMe 1TB (OS Drive)
Site should be much more responsive and smooth.
Windows
Mozilla Firefox
Thins were smooth yesterday, despite all the downtime. 🤷
The data of some objects are not correctly shown in search result. As shown in the following screenshots:
This issue is not only about this object, but also can be found on other objects.
The data in search result should be the same as the data in detail page.
Windows
Microsoft Edge
No response
After the most recent outage, it seems like the ability to page through a gallery of images from either the model page itself or from one of its reviews is gone. Only one image can be viewed at a time, to view another one must exit that image and click another. There is no "page indicator" at the bottom, left/right arrows don't work,
-Click on an image from any model or model review with multiple images.
-Attempt to scroll left or right through the image gallery
When viewing an image fullscreen, it should have the page indicator dots and it should show clickable left/right arrows as well as respond to left/right arrow key inputs.
Windows
Mozilla Firefox
No response
Originally posted by JustMaier November 30, 2022
This one comes from DarkLocust on Discord.
So you can follow your favorite models and get notified for the updates
Now that we have a favorite/liked model system. It'd be great for us to add a notification system so that we can notify you when new versions of those models are available. I could also see this being used to follow specific creators so you can be notified any time they release a new model.
Here's a rough outline of how this can work:
HackMD
I've occasionally seen some images that failed to upload or something:
I guess some how we need to make sure that the image uploads were successful so that we don't save temp blob urls to the db.
No response
No response
No response
I keep getting logged out when I open a new tab or refresh and have to go to https://civitai.com/models/create to snap it back into thinking im logged in. Pressing sign in while "logged out" does nothing. The website functions as if I'm logged out, blurring nsfw models and showing a follow button on my profile.
It remains logged in.
Windows
Google Chrome
Reporting is broken
Unable to send report
Invalid `prisma.commentReport.create()` invocation: An operation failed because it depends on one or more records that were required but not found. No 'Comment' record(s) (needed to inline the relation on 'CommentReport' record(s)) was found for a nested connect on one-to-many relation 'CommentToCommentReport'.
Report content
Windows
Mozilla Firefox
No response
Originally posted by ninjasaid2k November 20, 2022
I was looking for a way to save models that I like and many sites have a favorite list that makes it easy to save.
The discussions and reviews is disappearing on scroll after expanding a long model description, it seems like there's a problem with Intersection Observer. For more details, watch video below
Show More
in model descriptionDiscussion/review section should be visible all the time regardless on how long the model description is
Windows
Google Chrome
No response
After choosing dark mode, a day or so later when I came back, it was light mode again
It should remember my setting for ever. Ideally it would be for my entire account on all of my devices.
Windows, iOS
Apple Safari, Microsoft Edge
No response
Originally posted by manuelurenah November 16, 2022
Right now the model url structure is as follow /models/{id}
which is not great for SEO since it will generate the following /models/1234
. To improve this, it'd be best to slugify the model title and set that as the url /models/{slug}
(e.g.: /model/arcane-diffusion
).
Also, we should strip any html tags from the meta description
The API is returning a 404 error for valid hashes. Tried with blake3 and sha256 copied from model pages.
For example, using the blake3 hash copied from Dreamshaper's model page for the 3.31 bake vae
version:
https://civitai.com/models/4384/dreamshaper
Which is: 30BE3842DAE0A525F6BF47A1E1B47098AEA72500553B77541885F497C1D03723
$ curl --head -X GET https://civitai.com/api/v1/models-versions/by-hash/30BE3842DAE0A525F6BF47A1E1B47098AEA72500553B77541885F497C1D03723
HTTP/2 404
date: Sun, 12 Mar 2023 03:06:30 GMT
content-type: text/html; charset=utf-8
x-powered-by: Next.js
cache-control: private, no-cache, no-store, max-age=0, must-revalidate
vary: Accept-Encoding
strict-transport-security: max-age=15724800; includeSubDomains
cf-cache-status: DYNAMIC
server-timing: cf-q-config;dur=6.9999950937927e-06
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=YBenzlVU0DdR4pPlK%2Bvxn%2BeDxCuVxZOZei%2B1Z%2FlpSrF9o4sLoS7hBHr8gWIIL1f0wbV1b5qrbMGImqG49hE2poe%2BU4Tgruvyw6EwIx05iXp0Fq7KDbNnLcA6dOmAXscpD7LtjA4HrqsLzg%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 7a68d2552bb89836-SJC
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
A valid model JSON response should be sent.
MacOS
Apple Safari
No response
When a user adds a comment to the Full preview mode after clicking an image on the model, IF there is a comment on the picture, the Copy Generation Data button vanishes to the bottom.
The Copy Generation data button should not be pushed to the bottom
Windows
Google Chrome
No response
The OpenGraph data for models and such is pretty bad. It doesn't have spaces for new lines, so they are back to back with a often different paragraph.
Perhaps new lines should be prefixed with |
or just a space, though a space may confuse people when it is a new paragraph/subject.
N/A
Windows
Mozilla Firefox
No response
Drag Images Here or CLICK to Select Files, I have always uploaded no error information output.
Drag Images Here or CLICK to Select Files, I have always uploaded no error information output
Picture upload failed
Normal should be displayed or successful
No response
No response
The location of the model used in a generation changes location between images seemingly by random between images.
I guess differences in template files or something?
A consistent layout design for referencing data between images.
Windows
Mozilla Firefox
Just a minor design issue
When editing a comment, the link to the mentioned user is removed.
Link should remain after editing
Linux
Mozilla Firefox
Just noticed it and know it's a new feature but wanted to mention it.
Or should at least show a confirmation....
I don't think model description should be automatically hidden. No one is reading the descriptions of my models, including example prompts for the very questions they routinely ask.
Description, representation, usage restrictions, etc, in any case, should be right there on the main page of a model, not hidden away at any point without the user manually doing it -- especially when we can't actually select licenses to store and distribute with models (which is technically required to share 1.4/1.5/2.0/2.1 models and derivatives, and isn't being honored)
Visit any model page
All model authors information presented to the user
Windows
Mozilla Firefox
No response
If you click a user in the 'Uploader' field on a model page that has a underscore in their name, it will strip the underscore in the redirected path
--
If you explicitly search the user in the search bar (@cool_person) it will work correctly.
Dunno, are you intentionally stripping underscores for some reason?
No response
No response
No response
Inputting epoch of 1478 into the epoch of a textual inversion. It reverts it to 1000.
Enter 1478 into the epoch of a textual inversion
Should keep the epoch of 1478.
Linux
Mozilla Firefox
There may be a sane limit for this field, but for my case it's too low. If you do batch gradient descent (of the whole training set) each step would be a full epoch. This contributed to the epoch (1478) being large at 4,476 steps, with steps per epoch starting at 1 then to 3 steps per epoch later.
I made a review and put my images in a specific order and they were in a different order after I saved
The order should stay what I made it
Windows, iOS
Apple Safari, Microsoft Edge
It works fine when editing, just not with the initial save
I get that message at every page that I visit. The whole form that asks me to enter my nickname and agree to the TOS.
I registered with my google account if that can help.
Register with google.
Confirm nickname
Refresh page
not showing this at every refresh of the page
Windows
Mozilla Firefox
No response
When I'm going into the settings I can enable mature content. But once the option is enable it will not save it, so each time I reload or close the page I will always get a home page without nsfw.
It must save what I've select
Windows, Linux, MacOS, iOS, Android, Other/Cloud
Mozilla Firefox, Brave, Apple Safari
No response
Downloads have been incredibly slow since yesterday, despite a stable gigabit connection. Taking 12 hours+ with some models (depending on the size).
Is there some kind of 24 hour bandwidth cap? If so, I couldn’t find it documented anywhere.
A quick and easy download at high speeds.
Windows, Linux, MacOS
Google Chrome
If this is working as intended, thats fine, just wasn’t documented or notified anywhere I could see. :)
Uploading a lora file always fails when clicking save
. Website is unable to find the model I uploaded when using Firefox
upload a model
.safetensors
fileSave
Model uploads just fine and I can save / publish a draft
Windows
Mozilla Firefox
Error message
"Could not save model
An error occurred while saving the model: File NameOfLORA.safetensors could not be found.
Please re-upload."
Worked when I upload on Brave browser instead of Firefox.
There are no adult models visible on Civitai, even when you have adult models active. On my model list, if adult models are active, none of my models show. If I disable it, only my safe models show. But with it active, everything of mine is hidden with:
No results found
Try adjusting your search or filters to find what you're looking for
I can see adult models site-wide with my appropriate settings.
Windows
Mozilla Firefox
No response
After the deployment process is completed, visit Civitai, and try to report an error The table public.User
DOES NOT Exist in the Current DataBase through the mailbox. There are other documents to refer to the configuration.env configuration file
The mail configuration is as follows
But I can't receive a registered email, and the back -end log to report an error message:
The table public.User
does not exist in the current database.
Normally, it should be able to successfully register the email normally
No response
No response
No response
Yesterday, I noticed that all models are filtered out when I am browsing while logged in. This is true on the main page, as well as my liked models page and any user pages. The exception is the hidden models page, where I can still see the (faded) list of hidden models.
This issue affects me when logged in on multiple browsers, but not when logged out. If I have the model page link, I can still go to the page and interact with it, only search is impaired.
I just want to restore normal account behavior. It's strange that it seems to be account specific. My guess is that I triggered a bug when switching a few user settings in rapid combination that corrupted some user setting. I'm okay if you need to reset my account: I can rebuild my likes/hidden settings, but just want to keep the supporter badge.
Windows
Mozilla Firefox, Google Chrome
No response
When signing up to Civitai using a Reddit account, an error is thrown if the email address provided for Civitai registration is the same as the email that was used to register for the Reddit account.
-Click burger menu
-Sign in/sign up
-Register with Reddit account
-When validating username/email use same email as for Reddit account
Username/Email validation form allows you to use the same email address that you used to register your SSO account
Windows
Mozilla Firefox
No response
Example: ChilloutMix (model page downloads: 50000+, frontpage: 13000)
Also applies to review count and likes, e. g. the Ulzzang-6500 embedding has three reviews but the counter on the frontpage says 2. Likes are the same story, around half the number is shown.
Doesn't seem to be a local caching issue, it shows the same when ignoring it.
It should show the accurate values when reloading the page, or atleast do a regular update so that the gaps aren't as big.
Linux
Google Chrome
No response
db error: ERROR: cannot alter type of a column used by a view or rule
DETAIL: rule _RETURN on view "ImageResourceHelper" depends on column "name"
0: sql_migration_connector::validate_migrations
with namespaces=None
at migration-engine\connectors\sql-migration-connector\src\lib.rs:301
1: migration_core::state::DevDiagnostic
at migration-engine\core\src\state.rs:269
Happening after a fresh clone of main branch and following the steps described in the readme.
Step 5 is where it fails. Ive never worked with this db framework so no idea whats going wrong here.
Is there a faulty config/file on my side or something with repo?
Follow the readme steps till step 5.
Succesful migration.
No response
No response
No response
I've noticed that on a LoRA I've made the downloaded files do not have the same name as the one's that I've uploaded. For example, I have two versions of a LoRA that I made for compatibility purposes, and AnythingV3 version and AOM3 version. The AnythingV3 was uploaded with the name "zoroark_AT3.safetensors" but the downloaded file has the title "zoroarkLora_zoroarkLoraAnythingV3.safetensors." Even stranger is that the "zoroark_AOM3.safetensors" version is only named "zoroarkLora_zoroarkLora.safetensors" with no mention of AOM3 in the filename. This is bad since there's now no way to tell what the second file is based on without context (or reading the metadata). I can only confirm that this occurs on LoRA's, I do not have any models to upload.
I think there should either be an option to use the original file name or enter a new one for downloaded files, and the published name shouldn't be prepended to the downloaded files since that's redundant.
Here's the upload in question: https://civitai.com/models/25485
Downloaded files should have had the original filenames from the uploaded files.
Windows
Google Chrome
No response
cloudflare reports the website is down.
according to the website
the website should work.
No response
No response
No response
This screenshot is from https://civitai.com/models/13256/boneless-pizza. The carousel component on the left is not vertically centered, and the controller is not vertically centered either. These make the whole page look unbalanced.
https://civitai.com/models/13256/boneless-pizza
This occurs when the aspect ratio of the preview images are all greater than one.
This layout may be better.
Windows, MacOS
Google Chrome
No response
The total downloads are seemingly random, and do not reflect the project.
For example, I have 743 total downloads, but the total only reads a random 293
https://civitai.com/models/20793/was-node-suites-comfyui
Simply count up all versions downloads. No funny business.
Windows
Mozilla Firefox
No response
Calling the /models endpoint with the type parameter doesn't seem to make a difference regardless of the enum type chosen.
The response from the following url will return 3 Checkpoints:
https://civitai.com/api/v1/models?limit=3&type=TextualInversion
That's a link taken from the wiki and it also exhibits this problem in the documented response example.
This seems to be happening with the other options as well.
The Type enum values should return their corresponding model types.
Windows
Mozilla Firefox
No response
If I send a request for the newest 100 uploads (https://civitai.com/api/v1/models?limit=100&sort=Newest) I do not see several uploads that should be in the list.
For example at the time of this writing none of the models from:
https://civitai.com/user/bloodsplash09
https://civitai.com/user/Puffin
show up in the api response
go here: (https://civitai.com/api/v1/models?limit=100&sort=Newest
you should see models from:
https://civitai.com/user/bloodsplash09
https://civitai.com/user/Puffin
but you don't see any of these models in the api response, even though they are showing on the civitai site.
new models should be showing up in the api call for the newest 100 uploads, but there are several missing and they look to be missing as a function of the person uploading them, that is that the missing models from the api call are not random they are from certain uploaders
Windows
Google Chrome
I use the api a lot, and have never seen this happen before.
Originally posted by JustMaier November 19, 2022
Looks like NextAuth supports Reddit OAuth. It'd be cool to support it since there is a large SD community there.
My code was running as usual, but around 11:40 today it stopped working. Upon trying to get a response back form Civitai I am getting this error: schannel: next InitializeSecurityContext failed:
(https://civitai.com/api/v1/models?limit=100&sort=Newest) trying to read from this link for example yields the above error.
I should have gotten a response from the server.
Windows
Google Chrome
Everything had been working fine for a while, but now I am getting this error.
Show Model Details
Windows
Mozilla Firefox
No response
I uploaded images for model reviews and all 16:9 ones get blurry thumbnails.
From looking at other images it seems the wider the image, the blurrier the thumbnail.
Check the reviews on this model's page for example : https://civitai.com/models/7241/mix-pro-v3
Look closely, some thumbnails are sharp, others are a bit or quite blurry.
--
No response
No response
No response
Originally posted by a-l-e-x-d-s-9 January 12, 2023
I signed up to be a member today, and noticed my code to the API bonked with the new membership thing. Is there and API update that let's me log in as a member to download the "early access" models via the API?
trying to download the model api link yields an html file asking to be a member, I am a member but have no way of telling the api that.
the early access model should be downloaded
Windows
No response
No response
odule not found: Can't resolve 'use-sync-external-store/shim'
Import trace for requested module:
./node_modules/_use-sync-external-store@1.2.0@use-sync-external-store/shim/with-selector.js
./node_modules/_zustand@4.3.3@zustand/esm/index.mjs
./src/store/ClientHistoryStore.tsx
./src/pages/_app.tsx
npm run dev error : not found: Can't resolve 'use-sync-external-store/shim'
No response
No response
No response
My laptop likes to spin its fan up when browsing civitai, really seems to be the heaviest page I browse regularly.
Narrowed down the issue to the animated svg heart on top left, since doing simple css style tweak seems to bring cpu use down to regular levels:
svg, svg path {
animation: none !important;
}
Don't eat so much cpu plz.
Linux
Mozilla Firefox
These might be related firefox bugs:
https://bugzilla.mozilla.org/show_bug.cgi?id=1812394
https://bugzilla.mozilla.org/show_bug.cgi?id=1409486
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.