HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
neonsecret
stable-diffusion
Jupyter Notebook2022–2022
neonsecret / stable-diffusion

stable-diffusion

Discover this repository through its Hacker News conversations.

2Distinct people
3Mentions
0Explicit recommenders
590GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:03:16 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour3 dated mentions

Observed mentions: 2022-09-04 06:57:35 UTC to 2022-09-04 11:48:15 UTC.

0122022-09-04 06:00:00 UTC to 2022-09-04 07:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 4, 06:002022-09-04 07:00:00 UTC to 2022-09-04 08:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-09-04 08:00:00 UTC to 2022-09-04 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsSep 4, 08:002022-09-04 09:00:00 UTC to 2022-09-04 10:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-09-04 10:00:00 UTC to 2022-09-04 11:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-09-04 11:00:00 UTC to 2022-09-04 12:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsSep 4, 11:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Sep 4, 06:002022-09-04 06:00:00 UTC2022-09-04 07:00:00 UTC101
Sep 4, 07:002022-09-04 07:00:00 UTC2022-09-04 08:00:00 UTC000
Sep 4, 08:002022-09-04 08:00:00 UTC2022-09-04 09:00:00 UTC000
Sep 4, 09:002022-09-04 09:00:00 UTC2022-09-04 10:00:00 UTC000
Sep 4, 10:002022-09-04 10:00:00 UTC2022-09-04 11:00:00 UTC000
Sep 4, 11:002022-09-04 11:00:00 UTC2022-09-04 12:00:00 UTC202

What Hacker News says

3 sources
In case anyone is confused by the clashing repos, here is how I was able to easily run this updated code. Clone the original SD repo, which is what this code was built off of, and follow all the installation instructions: https://github.com/CompVis/stable-diffusion In that repo, replace the file ldm/modules/attention.py with this file: https://raw.githubusercontent.com/neonsecret/stable-diffusio... Now run a new prompt with a larger image. Note that the original model was trained on 512x512 and may lead to repetition especially if you try to increase both dimensions (this is mentioned in the SD readme) so just run with one dimension increased. For example try the following example: python scripts/txt2img.py --prompt "a person gardening, by claude monet" --ddim_steps 50 --seed 12000 --scale 9 --n_iter=1 --n_samples=1 --H=512 --W=1024 --ski
Read the rest
p_grid I confirmed that if I run that command with the original attention.py, it fails due to lack of memory. With the new attention.py, it succeeds. That said, this still uses 13GB of ram on my system. I suppose you can check out the full repo with the updated code, which seems to have other changes, if you want to give that a try. https://github.com/neonsecret/stable-diffusion/ I have already been using the original SD repo so I found benefit by just changing attention.py
In Stable Diffusion PR optimizes VRAM, generate 576x1280 images with 6 GB VRAM

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.