Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix find path #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions python/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from torch.utils.data import DataLoader

from fcn import VGGNet, FCN32s, FCN16s, FCN8s, FCNs
from Cityscapes_loader import CityscapesDataset
from Cityscapes_loader import CityScapesDataset
from CamVid_loader import CamVidDataset

from matplotlib import pyplot as plt
Expand All @@ -34,7 +34,7 @@

if sys.argv[1] == 'CamVid':
root_dir = "CamVid/"
else
else:
root_dir = "CityScapes/"
train_file = os.path.join(root_dir, "train.csv")
val_file = os.path.join(root_dir, "val.csv")
Expand All @@ -57,7 +57,7 @@
if sys.argv[1] == 'CamVid':
val_data = CamVidDataset(csv_file=val_file, phase='val', flip_rate=0)
else:
val_data = CityscapesDataset(csv_file=val_file, phase='val', flip_rate=0)
val_data = CityScapesDataset(csv_file=val_file, phase='val', flip_rate=0)
val_loader = DataLoader(val_data, batch_size=1, num_workers=8)

vgg_model = VGGNet(requires_grad=True, remove_fc=True)
Expand Down