https://flyte.org logo
#ask-the-community
Title
# ask-the-community
v

Victor Gustavo da Silva Oliveira

02/16/2023, 8:17 PM
Hello guys I'm trying to use FlyteFile to send images between tasks, but when I'm trying to load the downloaded image with tensorflow, I'm keep getting the following error: TypeError: path should be path-like or io.BytesIO, not <class 'flytekit.types.file.file.FlyteFile'> I'm using this blog post as an example.
The idea is to not download images to local storage, but to use it as a ephemeral file, as FlyteFile supposed to be
d

David Espejo (he/him)

02/16/2023, 9:46 PM
cc @Samhita Alla
k

Ketan (kumare3)

02/17/2023, 12:57 AM
hmm hey @Victor Gustavo da Silva Oliveira i am actually working on streaming a FlyteFile right now
we have a prototype and this will eventually endup in flytefile
v

Victor Gustavo da Silva Oliveira

02/17/2023, 12:17 PM
Cool! So, right now, if I want to use the FlyteFile format to load images, it will be needed to download it to local store? Using the
download()
method?
PS: I'm using GCP as my data persistence layer
s

Samhita Alla

02/17/2023, 1:45 PM
Cool! So, right now, if I want to use the FlyteFile format to load images, it will be needed to download it to local store? Using the
download()
method?
Yeah, you'll need to download it.
v

Victor Gustavo da Silva Oliveira

02/17/2023, 1:49 PM
Alright, I think I've understood now. Thank you all!
7 Views