Posts
1568
Following
138
Followers
877
I'm a bit of an eclectic mess 🙂 I've been a programmer, journalist, editor, TV producer, and a few other things.

I'm currently working on my second novel which is complete, but is in the edit stage. I wrote my first novel over 20 years ago but then didn't write much till now.

I post about #Coding, #Flutter, #Writing, #Movies and #TV. I'll also talk about #Technology, #Gadgets, #MachineLearning, #DeepLearning and a few other things as the fancy strikes ...

Lived in: 🇱🇰🇸🇦🇺🇸🇳🇿🇸🇬🇲🇾🇦🇪🇫🇷🇪🇸🇵🇹🇶🇦🇨🇦

Fahim Farook

Decided to give DeepFloyd a try today on macOS.

The good news? It works … kinda 😛

The bad news? It doesn’t work all the way … as was to be expected 🙂

I took the following code from their GitHub repo (https://github.com/deep-floyd/IF) and modified for an Apple Silicon (M1) Mac. Here’s the actual code I ran:

from diffusers import DiffusionPipeline
from diffusers.utils import pt_to_pil
import torch

# stage 1
stage_1 = DiffusionPipeline.from_pretrained("DeepFloyd/IF-I-M-v1.0").to("mps")

# stage 2
stage_2 = DiffusionPipeline.from_pretrained("DeepFloyd/IF-II-M-v1.0", text_encoder=None).to("mps")

# stage 3
safety_modules = {"feature_extractor": stage_1.feature_extractor, "safety_checker": stage_1.safety_checker, "watermarker": stage_1.watermarker}
stage_3 = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-x4-upscaler", **safety_modules).to("mps")

prompt = 'a photo of a kangaroo wearing an orange hoodie and blue sunglasses standing in front of the eiffel tower holding a sign that says "very deep learning"'

# text embeds
prompt_embeds, negative_embeds = stage_1.encode_prompt(prompt)

generator = torch.manual_seed(0)

# stage 1
image = stage_1(prompt_embeds=prompt_embeds, negative_prompt_embeds=negative_embeds, generator=generator, output_type="pt").images
pt_to_pil(image)[0].save("./if_stage_I.png")

# stage 2
image = stage_2(image=image, prompt_embeds=prompt_embeds, negative_prompt_embeds=negative_embeds, generator=generator, output_type="pt").images
pt_to_pil(image)[0].save("./if_stage_II.png")

# stage 3
image = stage_3(prompt=prompt, image=image, generator=generator, noise_level=100).images
image[0].save("./if_stage_III.png")

You have to make sure that diffusers, transformers, and accelereate (at least in my own trial) are fully up-to-date. The larger models probably work too but it took too long to download/test and so I opted for the smallest models.

Stage I and II generated images but stage III errored out. I will need to figure out what happened there later …

Resulting images are attached …

#DeepLearning #MachineLearning #DeepFloyd #ImageGeneration


Stage I image — 64 x 64 in size…
Stage II image — 256 x 256 in s…
0
0
4

University 🌺
@_ksu_erm_

0
5
1

Fahim Farook

“Citadel” looked interesting on paper — the Russo brothers, Priyanka Chopra, Richard Madden, and a story about a global spy agency — but the initial story (before the credits) was so full of holes and logic issues that they’re going to have to work really hard to convince me …

I guess we’ll see how the first episode plays out.

#TV #FirstTakes
0
0
2

Been gone for a while... here is one from my archives.

The sky in Oklahoma is a constant source of inspiration!

Get a print and take it home with you!

https://shelli-fitzpatrick.pixels.com/featured/oklahoma-sunrise-sky-on-fire-shelli-fitzpatrick.html

0
6
1

Fahim Farook

StabilityAI has released DeepFloyd IF … there goes the next few weeks probably 😛

https://github.com/deep-floyd/IF

#MachineLearning #DeepLearning #ImageGeneration
2
0
2

Laurie Ashton Farook

Edited 2 years ago
Black Hole

2023 04 02 day 283 of doing art every day for a year (mostly – I took sick days off). I’m doing a one art-thing every day challenge to take me from wannabe artist to something around beginner artist. I’m very much still learning and am self-taught. This series chronicles this journey.

I saw an image of a black hole on the Curiosmos site, linked below, and thought I’d do my own take. Here it is!

For more info, including seeing the time lapse, follow this link: https://lmashton.com/black-hole/

#ArtMatters #AYearForArt #Procreate #DigitalArt #WomensArt #ArtistsOnMastodon
An imagined vision of a black h…
1
15
11

We went to San Francisco Botanical Gardens yesterday, and I took photos of three new birds. These jays were my favorite.

3
1
0

Laurie Ashton Farook

Alien Landscape

2023 03 31 day 281 of doing art every day for a year (mostly – I took sick days off).

To clarify for those who weren’t with me at the beginning in May 2022, I decided to do a one year challenge to do some kind of art every day for a year so I could, hopefully, learn to do art. In the beginning, my art, or more accurately, “art”, wasn’t very good. I had not done much since finger painting in grade two or three. I considered myself a wannabe artist. But I figured that, if I worked at art seriously for a year, I could improve. I aspire to competence. So what you see here is very much that of a beginner artist learning to art.

On to the now. I seem to be developing a habit of painting otherworldly scenes. I must continue that with zero restraint.

For more info, including seeing the time lapse, follow this link: https://lmashton.com/alien-landscape/

#ArtMatters #AYearForArt #Procreate #DigitalArt #WomensArt #ArtistsOnMastodon
A digital painting of an alien …
1
16
28

Suppose I should provide a brief

- Background in
- Use and to solve challenging problems in
- Live in
- Organizer of our local meetup group -- see @madpy
- Perennially hopeful fan
- Devoted drinker
- Proud papa of two

1
1
0

Fahim Farook

For all their talk about #MachineLearning support on their latest Apple Silicon devices, you just can’t do any of the newer generative stuff on Macs easily, or fully.

So what’s the point of Apple touting their machine learning prowess except to be misleading?

Any time I try to do anything even slightly complicated/off the beaten track, I run into issues on the Mac side 😕 Even a few years after the introduction of Apple Silicon, it just feels as if Apple is just not ready for all the new stuff …

Makes you almost want to go back to using a PC full time … almost 😛

#MachineLearning #DeepLearning #AppleSilicon #Hardware
0
0
3

Friday Flyday! Here’s a portrait of a hanging-thief fly, Diogmites sp., photographed in Saint Louis.

1
1
0
Edited 2 years ago

I normally post these on Twitter, but it just occurred to me I could try doing so here: MIT Technology Review has an open call for pitches, for our upcoming issue on ⚖️ethics⚖️. We're looking for *big* swings: features, investigations, profiles, and sharp essays at the intersection of and . Rates: $1-2/word.

Pitch deadline is tomorrow: April 20. Short notice, I know! If you have an idea, but need a day or two to write up a pitch, send me an e-mail (see https://www.technologyreview.com/how-to-pitch-mit-technology-review/)

1
3
0

Take a moment to enjoy this unusually twisted and very big London Plane in

0
1
0
Show older