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

How do we train cycada feature &pixel #11

Closed
xiaoqianjia opened this issue Nov 29, 2018 · 4 comments
Closed

How do we train cycada feature &pixel #11

xiaoqianjia opened this issue Nov 29, 2018 · 4 comments

Comments

@xiaoqianjia
Copy link

Hi Can you explain how do we train cycada pixel only, feature only, pixel & feature with GTA5 to CityScapes?
I am confused the results from ./train_fcn.sh ./train_fcn_adda.sh, what's the different between them?

Thanks

@jhoffman
Copy link
Owner

train_fcn.sh trains a semantic segmentation model using the ground truth labels (standard supervised learning). You should use this to pre-train your source model with known labels.

train_fcn_adda.sh uses the feature adaptation to update the source initialized model output from previous step according to optimizing with the unlabeled target data.

For GTA->CityScapes the procedure is:

  1. Train CycleGAN based pixel adaptation to translate GTA images to resemble CityScapes images (or download the translated images directly from the provided link)
  2. Run standard fcn training on the translated GTA images with the known GTA labels
  3. Train feature space adaptation taking as input the translated GTA images, CityScapes images and the output weights from step 2

@JamesChenChina
Copy link

Do you know how to "Train CycleGAN based pixel adaptation to translate GTA images to resemble CityScapes images"? @xiaoqianjia
Many thanks

@JamesChenChina
Copy link

@jhoffman Do you have the pre-trained model for "Train CycleGAN based pixel adaptation to translate GTA images to resemble CityScapes images"?
Many thanks!

@Luodian
Copy link

Luodian commented Apr 12, 2019

@jhoffman Same question, how to translate GTA images to CityScapes images by our own?
I find it's different from Cyclegan's original code, especially in cycle_gan_semantic_models.py.

I set my dataset properly using 'unaligned_datasets.py', but when I run train.py in cyclegan module.

It raises an error about no self.input_A_label found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants