Skip to content
#

pspnet

Here are 34 public repositories matching this topic...

captainst
captainst commented Oct 15, 2019

In file binary segmentation (camvid).ipynb, block 5, there is:

# Lets look at data we have
dataset = Dataset(x_train_dir, y_train_dir, classes=['car', 'pedestrian'])
image, mask = dataset[5] # get some sample
visualize(
    image=image, 
    cars_mask=mask[..., 0].squeeze(),
    sky_mask=mask[..., 1].squeeze(),
    background_mask=mask[..., 2].squeeze(),
)

here, sky_mask

jaffe-fly
jaffe-fly commented Apr 23, 2020

如果设置
cfg.NUM_TRAINERS = 4
cfg.TRAINER_ID = 0,1,2,3
if self.shuffle and cfg.NUM_TRAINERS > 1: np.random.RandomState(self.shuffle_seed).shuffle(self.all_lines) num_lines = len(self.all_lines) // cfg.NUM_TRAINERS self.lines = self.all_lines[num_lines * cfg.TRAINER_ID: num_lines * (cfg.TRAINER_ID + 1)] self.shuffle_seed += 1
上面代码中的self.

PascalWB
PascalWB commented May 20, 2018

Thank you for all the input.
I have, however, problems to get the tutorial (https://modeldepot.io/hellochick/pspnet) running on my machine. Unfortunately, I'm very new to python.

Minimal example:
import tensorflow as tf
import numpy as np
from scipy import misc
import matplotlib.pyplot as plt

from PIL import Image

from model import PSPNet101, PSPNet50
from tools import *

im

Improve this page

Add a description, image, and links to the pspnet topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the pspnet topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.