A repository of models, textual inversions, and more
npx skills add https://github.com/civitai/civitai --skill meilisearch-adminInstallieren Sie diesen Skill über die CLI und beginnen Sie mit der Verwendung des SKILL.md-Workflows in Ihrem Arbeitsbereich.
Our goal with this project is to create a platform where people can share their stable diffusion models (textual inversions, hypernetworks, aesthetic
gradients, VAEs, and any other crazy stuff people do to customize their AI generations), collaborate with others to improve them, and learn from each
other's work. The platform allows users to create an account, upload their models, and browse models that have been shared by others. Users can also
leave comments and feedback on each other's models to facilitate collaboration and knowledge sharing.
We've built this project using a combination of modern web technologies, including Next.js for the frontend, TRPC for the API, and Prisma + Postgres
for the database. By leveraging these tools, we've been able to create a scalable and maintainable platform that is both user-friendly and powerful.
First, make sure that you have the following installed on your machine:
nvm in order to set the right node version to run this projectcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
⚠️ Important Warning for Windows Users: Either clone this repo onto a WSL volume, or use the "clone repository in named container volume"
command. Otherwise, you will see performance issues.
Dev Containers: Open Folder in Container.devcontainer/devcontainer.json file, and click "Create devcontainer and mount sources"make run or npm run devmake init
env filenode_modules/.bin is added to your path:
export PATH="$PATH:$(realpath node_modules/.bin)"CR_PAT envecho $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin.env.development file
minioadmin, and then navigate.env file (S3_UPLOAD_KEY and S3_UPLOAD_SECRET, S3_IMAGE_UPLOAD_KEY and S3_IMAGE_UPLOAD_SECRET).WEBHOOK_TOKEN to a random string of your choice. This will be used to authenticate requests to the webhook endpoint.EMAIL_USEREMAIL_PASSEMAIL_FROM (Valid email format needed)git submodule update --recursive* Note that account creation will run emails through maildev, which can be accessed at http://localhost:1080.
PGPASSWORD=postgres psql -h localhost -p 15432 -U postgres civitai)isModerator to trueServices that require external input will currently not work locally. These include:
Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
If you would like to be more involved, consider joining the Community Development Team! For more information on the team as well as how to join,
see Calling All Developers: Join Civitai's Community Development Team.
Over the course of development, you may need to change the structure of the database. To do this:
schema.prisma fileprisma/migrations folder named with the convention YYYYMMDDHHmmss_brief_description_heremigration.sqlALTER TABLE ...make run-migrations and make gen-prismagen_seed.ts file up to date with these changes.Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
Apache License 2.0 - Please have a look at the LICENSE for more details.