This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### COPY ALL THE CODE INTO A JYPYTER NOTEBOOK ### | |
### THE JYPYTER NOTEBOOK NEEDS TO BE IN 'tensorflow\models\research\deeplab' ### | |
## Imports | |
import collections | |
import os | |
import io | |
import sys | |
import tarfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### COPY ALL THE CODE INTO A JYPYTER NOTEBOOK ### | |
### THE JYPYTER NOTEBOOK NEEDS TO BE IN 'tensorflow\models\research\deeplab' ### | |
## Imports | |
import collections | |
import os | |
import io | |
import sys | |
import tarfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import torch | |
import torch.nn as nn | |
import torch.optim as optim | |
from torch.utils.data import Dataset, DataLoader, random_split | |
# --------------- Dataset --------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### THIS FILE CAN BE RUN ANYWHERE IN A TERMINAL WRITING 'python deeplab_demo_webcam_v2.py' AS LONG | |
### AS THE HELPER FILE get_dataset_colormap.py IS IN THE SAME DIRECTORY AS deeplab_demo_webcam_v2.py | |
## Imports | |
import collections | |
import os | |
import io | |
import sys | |
import tarfile |