No description
  • JavaScript 76.1%
  • Python 18.2%
  • Jupyter Notebook 2.5%
  • HTML 1.6%
  • CSS 1%
  • Other 0.6%
Find a file
ale-rls 98949ea0ee
Some checks failed
frontend-test.yml / dependency problem (push) Has been cancelled
dependency problem
2024-03-07 16:43:21 +01:00
.github/workflows Features/fancy home (#360) 2022-06-24 11:16:13 +02:00
.vscode Media viewer abstraction and cleaner writing to IPFS and localpollens use IPFS 2022-03-19 18:11:49 +01:00
app dependency problem 2024-03-07 16:43:21 +01:00
colabs Increase debounce (#537) 2022-11-02 16:32:18 +01:00
docs Update instructions.md 2021-09-05 12:22:08 +02:00
image_gen merge gen image url backend code (#621) 2023-12-16 09:33:27 +01:00
image_gen_server Add formulaxl model and fix nologo=true (#623) 2023-12-17 07:37:52 +01:00
pollinations.py Major pollinations.py update. (#625) 2023-12-23 14:32:48 +00:00
.gitattributes merge gen image url backend code (#621) 2023-12-16 09:33:27 +01:00
.gitignore merge gen image url backend code (#621) 2023-12-16 09:33:27 +01:00
LICENSE ImageFeed Updates & Repo tweaks. (#603) 2023-12-07 23:59:06 +01:00
netlify.toml Refactor/remove ipfs hooks (#373) 2022-07-08 17:22:31 +02:00
pollinations_architecture.png transparent diagram added 2021-08-16 20:15:52 +02:00
pyproject.toml Major pollinations.py update. (#625) 2023-12-23 14:32:48 +00:00
README.md Major pollinations.py update. (#625) 2023-12-23 14:32:48 +00:00
setup.py Major pollinations.py update. (#625) 2023-12-23 14:32:48 +00:00

License Python Versions

🌸 pollinations.ai

Pollinations are an effort to make generative art more approachable.

  • A frontend hosting a set of curated notebooks that allow creating and experimenting with generative art.
  • The Interplanetary Filesystem (IPFS) for decentralized censorship-resistant storage of models, code and generated content
  • Pollinations are run on Google Colab at the moment (for the free cloud GPUs)

Instructions on using Pollinations.AI.

🐍 Python Package

# Usage Example

import pollinations as ai

model: object = ai.Model()

image: object = model.generate(
    prompt=f'Golden retriever puppy playing in the rain {ai.realistic}',
    model=ai.turbo,
    height=512,
    seed=57184
)
image.save('image-output.jpg')

print(image.url)
// >>> https://image.pollinations.ai/prompt/Golden%20retriever%20puppy%20playing%20in%20the%20rain%20realistic,%20realism,%20real%20life,%20ultra%20realistic,%20high%20quality,%20real?model=turbo&width=1024&height=512&seed=57184

image

<EFBFBD>👩‍💻 Development (outdated)

Development of Pollinations.AI Web App
`make dev` to start the development server of web app.% 

Enable logging:
`localStorage.debug = "*"`

If logs don't appear in Chrome enable logging "All Aevels" (including Verbose)


## Optionally it is possible to develop with a local IPFS node

Enable connect to local IPFS:
`localStorage.localIFS = true

`make up` to start the releant services. See next section for details
Development of Notebooks

All notebooks at pollinations/hive are automatically deployed to Pollinations.

We will add an easy way to include custom notebooks. For now, to use an external notebook it needs to be uploaded to IPFS wrapped in a folder in the form input/notebook.ipynb. The resulting IPFS hash can be used directly like so: https://pollinations.ai/p/[hash]

Development with Local IPFS node
Development environment requires `docker` & `docker-compose` for running a loca IPFS node. For docker installation, please navigate to https://docs.docker.com/get-docker/.

After docker is setup, `make` is used for managing the IPFS and development environment.

## 🟡 Initialization

To run pollinations development environment first time,

- Run `make init`, this will initialize start the IPFS docker image and fill `tmp/ipfs` folder by migrating IPFS.

## 🟢 Running

After IPFS migrated, to start development environment,
- Run `make up`, this will start the dockerized IPFS instance and detach.
- Run `make dev` to start the react application living under `/app`

## 🔴 Stopping

- Run `make down` to stop running IPFS instance.
- Run `make clean` to remove the `tmp` folder and its contents.

## ⚙️ Configuration

IPFS configuration can be found and updated in `docker/ipfs/config.json`. Every time the docker containers are started, the config file under `tmp/ipfs/config` is overwritten with this json file.
Architecture Diagram

The following diagram has an editable copy embedded. Use https://draw.io/#Hpollinations/pollinations/master/pollinations_architecture.png to edit the file.

Export the results as PNG with "Include a copy of my diagram" option selected and replace the current diagram.

Architecture Diagram