Learn practical skills, build real-world projects, and advance your career
NotebookTitle = "4-Channel Images with F1 Score"
!pip install jovian --upgrade -q
!pip install kaggle --upgrade -q
import os
import gc
import numpy as np
import jovian
import cv2

import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision

from fastai import *
from fastai.vision import *
from fastai.metrics import accuracy, error_rate
from fastai.callbacks import *

from PIL import Image
from tqdm.notebook import tqdm 
from pathlib import Path

Key Setup

  • this reads the Kaggle and Jovian keys from external files, added to a seperate Kaggle notebook.
  • this keedps the keys private
# setup the jovian API key
jvn = !cat ../input/sgr-jovian/jovian.txt
jovian.utils.credentials.write_api_key(jvn[0])