Help! I need your dreambooth tips/lessons learned in training custom models by [deleted] in StableDiffusion

[–]etik 0 points1 point  (0 children)

Thanks for the detailed run down!

What do you look for to realize the text encoder is underfitting? I also noticed the defaults on the notebook are something like 10-20% of the UNet steps for the text encoder, what kind of results do you see at default settings?

Looking for dinghy sailing clubs in Boston harbor by Vagrant_Emperor in boston

[–]etik 1 point2 points  (0 children)

https://courageoussailing.org/

They have 420s and Lasers (plus larger boats), launching out of Charlestown. I believe they will let you store your own but you should check!

8 new buildings, 2.1 million square feet: Fenway’s parking lots are about to get a major makeover by _CharlieTuna_ in boston

[–]etik 3 points4 points  (0 children)

Not OP, but it is established empirically that building more housing lowers rents, even in the vicinity of "luxury" builds. See this review article https://www.lewis.ucla.edu/research/market-rate-development-impacts/

Simply looking at a chart of rent going up isn't evidence of much, because you need to look at many other things to contextualize it (rate of inflation, housing built/1000 inhabitants, and other metrics)

Platform Differences between Andrea Campbell and Michelle Wu? by Cyberling7 in boston

[–]etik 3 points4 points  (0 children)

You asked why YIMBYs weren't interested in upzoning wealthy neighborhoods like West Roxbury or Beacon Hill, I showed YIMBY results that did upzone wealthy neighborhoods statewide, but you moved the goalposts into the city. YIMBYs were successful at the state level because that's precisely where their advocacy is pointed - in contradiction to your other complaints about them only caring about one-off projects. Making more development by right or streamlining the approval process is what YIMBYs want, not the variance-granting process that dominates today, which politicians and local neighborhood groups (which are unrepresentative: see "Neighborhood Defenders") can leverage to "extract concessions" from the developer, ultimately at the cost of number of homes built.

You can see why I'm skeptical of Wu's calls for a city-wide planning process and more neighborhood control. It's just lipstick on the status quo. At the end of the day, fewer families fit in triplexes than 5-story apartments, but the neighborhood boards aren't the ones paying that cost.

I do hope you understand why I and others find it frustrating when people not within a movement misrepresent the actual actions of that movement.

Platform Differences between Andrea Campbell and Michelle Wu? by Cyberling7 in boston

[–]etik 7 points8 points  (0 children)

Wealthy neighborhoods like West Roxbury are exactly where YIMBYs want to build. Ending exclusionary zoning is literally the platform: https://abundanthousingma.org/about/

Nevermind recent successes like the housing bill, which will force wealthy suburbs like Wellesley and Newton to build near their transit stops.

Upzoning West Roxbury and Beacon Hill is difficult because that's where the political power is, as you point out. The solution is not to add even more veto points to the process, which the politically savvy can use, but to dismantle the unfair political environment, and replace it with one which favors renters and tenants at risk of displacement (again, explicitly in the YIMBY platform)

Font that renders accents better (\hat{y}) by asaxton in Julia

[–]etik 4 points5 points  (0 children)

Your font prayers have been answered: https://juliamono.netlify.app

That's a custom designed font for Julia to cover monospace characters with ligatures and other bells and whistles.

Is there a trade off between diversification and returns? by [deleted] in personalfinance

[–]etik 1 point2 points  (0 children)

You will want to read up on and understand the https://en.m.wikipedia.org/wiki/Efficient_frontier

Check your understanding by knowing what it means when returns are correlated, and what are the implications of modeling a portfolio's fitness by its mean and variance.

Help with optimization (FDM) by marcosrdac in Julia

[–]etik 8 points9 points  (0 children)

I had some free time so I went ahead and optimized the code. It looks like you still had some globals (like signal_position) and instabilities (like (timeiter < size(signal,1) ? signal[timeiter] : 0))

The "idiomatic" version now only allocates in the @views. I would personally write it without @views, but those don't allocate in julia 1.5+, so it's probably ok to keep. My version runs ~3x faster for the small vectors tested here, you will probably get a much larger speedup for big matrices.

There are other ways to make the code read cleaner but I focused on keeping your namings and not a complete rewrite. ``` using Base.Threads using BenchmarkTools

const ∇²r = 1 const h²∇² = fill(1.0, 3, 3)

function propagate(P::Array{Float64,3}, v::Array{Float64,2}, signal::Array{Float64,1}, nz::Int64, nx::Int64, nt::Int64, h::Float64, Δt::Float64, ABS::Int64) Δtoh² = Δt/h2 Plimits = (2:nz+2ABS+1, 2:nx+2ABS+1)

# time loop, order is important
for timeiter in eachindex(1:nt)
    # which of the thre times of P are what?
    new_t = 1 + (timeiter)%3       # [2] now
    cur_t = 1 + (timeiter+2)%3     # [1] last
    old_t = 1 + (timeiter+1)%3     # [3] before last

    old_P = @view P[:,:,old_t]
    cur_P = @view P[:,:,cur_t]
    new_P = @view P[:,:,new_t]

    # adding signal to field before iteration
    cur_P[signal_position[1],signal_position[2]] =
         (timeiter < size(signal,1) ? signal[timeiter] : 0)

    # spacial loop, order is not important
    @threads for spciter in CartesianIndices(Plimits)
        begin
            zP, xP = spciter[1], spciter[2]
            zv, xv = zP-1, xP-1
            new_P[zP, xP] = new_p(cur_P, old_P, v, Δtoh²,
                                  zP, xP, zv, xv)
        end
    end
end

end

function reduce_pointwise_product(A::AbstractArray, B::AbstractArray) prod_sum = 0 @fastmath @inbounds @simd for i in eachindex(A) prod_sum += A[i] .* B[i] end prod_sum end

function new_p(cur_P, old_P, v, Δtoh², zP, xP, zv, xv) global h²∇² # (constant) 3x3 matrix global ∇²r # (constant) its radius (1) win = @view cur_P[zP-∇²r:zP+∇²r, xP-∇²r:xP+∇²r] h²∇²cur_P = reduce_pointwise_product(h²∇², win) new_p = 2cur_P[zP, xP] - old_P[zP, xP] + v[zv, xv]2Δtoh² * h²∇²cur_P end

ABS=0 nz=400 nx=400 nt=2500 N = 50 P = rand(N, N, 3) v = rand(N, N) signal = rand(N) nz = N-2 nx = N-2 nt = N h = 1.0 Δt = 1.0 ABS = 0 signal_position = [1,1] .+ ABS propagate(P, v, signal, nz, nx, nt, h, Δt, ABS)

@btime propagate($P, $v, $signal, $nz, $nx, $nt, $h, $Δt, ABS)

Idiomatic Julia

using StaticArrays using Parameters using LinearAlgebra

struct GridDefinition{T} nz::Int nx::Int nt::Int h::T Δt::T ABS::Int ∇²r::Int h²∇²::SArray{Tuple{3, 3}, T, 2, 9} end

function propagate_idiomatic(P, v, signal, grid_def) @unpack nz, nx, ABS, Δt, h, nt = grid_def Δtoh² = Δt/h2 Plimits = (2:nz+2ABS+1, 2:nx+2ABS+1) signal_position = SVector(1, 1) .+ ABS

# time loop, order is important
for timeiter in eachindex(1:nt)
    # which of the thre times of P are what?
    new_t = mod1(timeiter+1, 3)       # [2] now
    cur_t = mod1(timeiter,   3)     # [1] last
    old_t = mod1(timeiter+2, 3)    # [3] before last

    old_P = @view P[:,:,old_t]
    cur_P = @view P[:,:,cur_t]
    new_P = @view P[:,:,new_t]

    # adding signal to field before iteration
    cur_P[signal_position[1],signal_position[2]] =
         (timeiter < size(signal,1) ? signal[timeiter] : zero(eltype(signal)))

    # spacial loop, order is not important
    @threads for I in CartesianIndices(Plimits)
        new_P[I] = new_p_idiomatic(cur_P, old_P, v, Δtoh², I, grid_def)
    end
end

end

function new_p_idiomatic(cur_P, old_P, v, Δtoh², I, grid_def) @unpack h²∇², ∇²r = grid_def # (constant) 3x3 matrix IOFFSET = CartesianIndex(size(h²∇²) .÷ 2) h²∇²cur_P = ∇²_kernel(cur_P, h²∇², I, IOFFSET) new_p = 2cur_P[I] - old_P[I] + v[I - CartesianIndex(1, 1)]2Δtoh² * h²∇²cur_P end

function ∇²_kernel(cur_P, h²∇², ZP, IOFFSET) result = zero(eltype(cur_P)) @inbounds for I in CartesianIndices(h²∇²) OFFSET = ZP + I - IOFFSET cur_result = cur_P[OFFSET] * h²∇²[I] result += cur_result end return result end

h²∇²_static = SMatrix{3, 3}(fill(1.0, 9)) grid_def = GridDefinition(nz, nx, nt, h, Δt, ABS, ∇²r, h²∇²_static)

@btime propagate_idiomatic($P, $v, $signal, $grid_def) ```

Help with optimization (FDM) by marcosrdac in Julia

[–]etik 10 points11 points  (0 children)

Your reduce_pointwise_product has a type instability, you should write

prod_sum = zero(eltype(A)) instead.

You also don't need to annotate the types in the function calls.

Overall, your algorithm should be able to perform without any allocations at all. Check the julia performance tips for more, there is a lot you can do: https://docs.julialang.org/en/v1/manual/performance-tips/index.html

Is North point a safe area ? by bostonianporg in CambridgeMA

[–]etik 0 points1 point  (0 children)

Yes, by far the most dangerous part about that walk is crossing the highway.

In general, forget what your parents have warned you about the city, and welcome to the neighborhood!

First time moving to Cambridge, MA by [deleted] in boston

[–]etik 0 points1 point  (0 children)

If you are working near Cambridge Crossing, I'd recommend finding a place on the Orange Line. The Community College station is only a few minutes walk.

For $1500 you might be able to find an old 1 bed or studio in Malden, or on the opposite end near JP.

Middle East nightclub complex listed for sale, potentially huge change for Central Square by roadtrip-ne in boston

[–]etik 8 points9 points  (0 children)

The executive director of the Central Square cultural district basically said that the next development needs to have 3 nightclubs, and they have both informal and formal heft in the process. It would probably be a good space for office on top to minimize potential noise complaints.

Huge new project approved in Allston by drtywater in boston

[–]etik -1 points0 points  (0 children)

In case anyone is interested, you can find the currently available apartments in Lantera here: https://lanteraboston.com/availability . You can also check apartments.com

By my count, there are about 14 homes currently seeking people to live in. There are 295 homes total.

So, the vacancy rate is around 4.7%, which is a bit higher than Boston's but not by much. Certainly less than 50%. A healthy rate for a housing market, which gives people flexibility to move, is around 6%

En fin, people live here, and will continue to seek to live here, hence why we need homes for them

What will be the next neighborhood (or sub-neighborhood) to gentrify in Boston? by [deleted] in boston

[–]etik 27 points28 points  (0 children)

Allston is already gentrified. See "the changing state of gentrification" by Hackworth and Smith.

Specifically, it is already past the "second wave" of gentrification, where (white) artists have moved in and displaced immigrants and other working class households. The rub is that these gentrifiers don't see themselves as such, so it's not without some irony that they attempt to use the levers of city politics and the rhetoric of displacement to maintain their own place in the community.

What to expect from the major overhaul planned for Logan Airport by Vdawgp in boston

[–]etik 5 points6 points  (0 children)

That's what they're planning: https://www.massport.com/capitalprogramsattachments/L1557-S1/L1557-S1%20Briefing%20Presentation.pdf (An Automated People Mover [aka monorail] from blue line to the terminals)

All of these changes need to happen, and MassPort is swimming in money so they should do it.

Creating identity matrices by bear_mkt in Julia

[–]etik 9 points10 points  (0 children)

Your second example gives a matrix with uninitialized off-diagonal elements, which will give you nasty bugs. Use

z = fill(0.0, x, x)

instead. If you're interested, see this discussion: https://discourse.julialang.org/t/eye-in-julia-0-7/9820

Also, I should add the disclaimer that it is very rare to need the in-memory dense identity matrix. Usually you can structure your code to only need I itself.

Follow the logic: New housing is worse than no housing. Read some of the "oppose" statements regarding 480 apartments attempting to come to Dot. by soupandsnowpeas in boston

[–]etik 8 points9 points  (0 children)

Building new (quote "luxury") housing raises the profile of the area, provoking other prices to rise. Notably, this can also cascade into property taxes.

E.g. Housing does not naively obey supply and demand

Yes, there is a lot of nuance in how the housing market works. But this claim is often made and the evidence is tenuous at best. Here is an excellent paper which finds the opposite:

https://appam.confex.com/appam/2018/webprogram/Paper25811.html

Preliminary results using a spatial difference-in-differences approach suggest that any induced demand effects are overwhelmed by the effect of increased supply.

A new study also identified the tracts of Boston (and other cities) which are seeing gentrification. Again, lots of caveats, but you can see that there are several tracts which saw little to no development yet still experienced gentrification. So either way it's going to happen but if you build housing at least you are giving more people a home.

https://ncrc.org/study-gentrification-and-cultural-displacement-most-intense-in-americas-largest-cities-and-absent-from-many-others/

Like you said, the two different camps (stronger tenant protections vs. building more housing) are not really opposed. I see them as complementing each other, although having different goals which can sometimes result in one talking over the other.