fast-ai Questions

3

Solved

I am reading the "Deep Learning for Coders with fastai & PyTorch" book. I'm still a bit confused as to what the Embedding module does. It seems like a short and simple network, except...
Marentic asked 25/12, 2020 at 4:2

8

Solved

I'm setting up a script and I need to use some functions from fast-ai package. The fact is that I'm on Windows and when I define my paths, the function from fast-ai named load_learner can't load th...
Stickweed asked 31/7, 2019 at 8:33

7

Solved

I try to run the below codes but I have a problem in showing the results. also, I use pycharm IDE. from fastai.text import * data = pd.read_csv("data_elonmusk.csv", encoding='latin1') data.head()...
Lascar asked 11/9, 2019 at 6:34

3

I tried running on my google colab notebook: !pip install -Uqq fastbook import fastbook as it is written in the FastAI book, chapter 2. but nor the book or anywhere on google there is an explanat...
Body asked 20/5, 2021 at 7:12

1

Solved

I'm trying to understand the value-added of using fastai's fastcore.basics.patch_to decorator. Here's the fastcore way: from fastcore.basics import patch_to class _T3(int): pass @patch_to(_T3)...
Hypogeal asked 11/8, 2022 at 6:20

2

Solved

I have trained a CNN model on GPU using FastAI (PyTorch backend). I am now trying to use that model for inference on the same machine, but using CPU instead of GPU. Along with that, I am also tryin...

1

While trying to run the docker image provided by fastai --> fastpages-jekyll I am running into several issues. This is a linux/amd64 image. I suspect that if there was a linux/arm64 image then i...
Textile asked 14/1, 2022 at 6:34

1

When setting up Fastbook in Google Colab, it requests permissions in order to access my Google Drive. This is the prompt I get: Permit this notebook to access your Google Drive files? This noteboo...
Pontificate asked 19/8, 2022 at 7:12

2

Solved

I am going over this Heroes Recognition ResNet34 notebook published on Kaggle. The author uses fastai's learn.lr_find() method to find the optimal learning rate. Plotting the loss function agains...
Denaturalize asked 12/4, 2020 at 14:1

1

When I run training using fast.ai only the CPU is used even though import torch; print(torch.cuda.is_available()) shows that CUDA is available and some memory on the GPU is occupied by my training...
Zipangu asked 14/12, 2021 at 15:25

1

class CustomImageItemList(ImageList): def custom_label(self,df, **kwargs)->'LabelList': """Custom Labels from path""" file_names=np.vectorize(lambda files: str(f...
Qualify asked 17/11, 2021 at 22:49

4

I am trying to use ImageDataBunch from fastai, and it worked fine, but recently when I ran my code, it showed this error ModuleNotFoundError: No module named 'fastai.vision' Then, I upgraded my fas...
Distinctive asked 24/9, 2020 at 4:26

1

Solved

I am drawing a Confusion Matrix in fastai with following code: interp = ClassificationInterpretation.from_learner(learn) interp.plot_confusion_matrix() But I end up with a super small matrix becau...

1

Solved

While following the Jupyter notebooks for the course I hit upon an error when these lines are run. I know that the cnn_learner line has got no errors whatsoever, The problem lies in the lr_find() p...
Coexist asked 15/7, 2021 at 15:18

4

Solved

I'm trying to run the jupyter notebooks of fastai's v3 course. My system has ubuntu 16.04 . Here's what I've done: Installed Python Installed Anaconda Ran conda update conda conda install -...
Foxtail asked 12/9, 2019 at 15:52

2

Solved

I am using kaggle house prices dataset, it is divided into: train and test I built a model with fastai tabular using train set How can I predict values for test data set? I know it sounds easy an...
Loiseloiter asked 4/1, 2021 at 11:17

2

Solved

In fastai v2 i am trying to add image augmentations So tfms = aug_transforms(do_flip = True, flip_vert=True, max_lighting=0.1, ) data = ImageDataLoaders.from_df(df,bs=5,item_tfms=tfms,folder=p...
Sirmons asked 7/12, 2020 at 19:29

2

Solved

Fast Ai uses a very unconventional style of from fastai import * etc. I for one do not like it so was painstakingly identifying each import in the chapter 2 of the fastai book but ran into the erro...
Malan asked 3/12, 2020 at 14:40

2

I'm using a laptop which has Intel Corporation HD Graphics 5500 (rev 09), and AMD Radeon R5 M255 graphics card. Does anyone know how to it set up for Deep Learning, specifically fast.ai/PyTorch?
Pipistrelle asked 21/7, 2020 at 5:36

1

I'm trying to load a learner which was exported by learn.export() and I want to run it against a test set. I want my test set have labels so that I can measure its accuracy. This is my code: test_s...
Loudmouth asked 13/7, 2020 at 7:40

1

I've been already browsing web for hours to find a solution for my, which i believe so might be a pretty petty issue. I'm using fastai's Sentence Piece Processor (SPProcesor) at the very first ste...
Parette asked 17/1, 2020 at 13:30

4

Solved

I am trying to install the FastAi library and use it with Google Colab. I am Using: !pip3 install fastai !apt-get -qq install -y libsm6 libxext6 && pip install -q -U opencv-python import...
Commutate asked 11/10, 2018 at 14:2

1

Solved

I am trying to replicate this kaggle notebook https://www.kaggle.com/tanlikesmath/diabetic-retinopathy-with-resnet50-oversampling on Google Colab. The code was working fine till yesterday but today...
Cheesewood asked 29/4, 2020 at 13:48

1

Solved

In Lesson 3 - planet, I saw these 2 lines of code: lr = 0.01 learn.fit_one_cycle(5, slice(lr)) if the slice(min_lr, max_lr) then I understand the fit_one_cycle() will use the spread-out Learning...
Junto asked 31/12, 2019 at 1:33

1

Solved

I must be getting something terribly wrong with the fast-ai library, since I seem to be the only one having this problem. Everytime I try the learning rate finder or training the network, it gives ...
Glogau asked 29/12, 2019 at 15:25

© 2022 - 2025 — McMap. All rights reserved.