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

Update vaegan.py #48

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

Update vaegan.py #48

wants to merge 11 commits into from

Conversation

Saran-nns
Copy link
Member

Test run of the model is available at Notebook.

Todo: Update vaegan trainer to current traja trainer

@codecov-io
Copy link

codecov-io commented Jan 31, 2021

Codecov Report

Merging #48 (0e4aa9c) into master (e3dcf25) will decrease coverage by 6.82%.
The diff coverage is 12.08%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
- Coverage   72.40%   65.57%   -6.83%     
==========================================
  Files          25       25              
  Lines        2551     2870     +319     
==========================================
+ Hits         1847     1882      +35     
- Misses        704      988     +284     
Impacted Files Coverage Δ
traja/models/generative_models/vaegan.py 12.04% <12.08%> (-26.42%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e3dcf25...0e4aa9c. Read the comment docs.

Copy link
Collaborator

@JustinShenk JustinShenk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JustinShenk
Copy link
Collaborator

@WolfByttner does this need revisions or is ready to merge?

@WolfByttner
Copy link
Contributor

This seems quite old. The models have been split up over several files, since they are used in both the AE and VAE models.

@WolfByttner
Copy link
Contributor

@Saran-nns which style settings are you using? You changed all single quotes to double quotes. You also added implicit decimals.

We need to define a style for this repo and set everyone up with it.

@Saran-nns
Copy link
Member Author

Saran-nns commented Feb 6, 2021

I am using "black". Yes, it is an older version and is not compatible with the recent trainer as well due to the complexity compared to AE and VAEs. It is better to keep it as an independent module with its own trainer.

@JustinShenk
Copy link
Collaborator

Formatting with black is enforced with .pre-commit-config.yaml, or at least it should be.

@Saran-nns
Copy link
Member Author

Saran-nns commented Feb 7, 2021

@WolfByttner Single to double quotes look reasonable since the dict keys have to be in double-quotes, but I never know formatter even cares about decimal point 0. --> 0.0

@JustinShenk
Copy link
Collaborator

@WolfByttner do you have any updated instructions for this or can Saran focus on fixing the merge conflict?

@WolfByttner
Copy link
Contributor

@JustinShenk, @Saran-nns not for VAEGAN itself. That model is still independent of everything else.

If there are modifications to trainer, we should probably coordinate them. @Saran-nns, feel free to come up with a suggestion.

@Saran-nns
Copy link
Member Author

Saran-nns commented Mar 4, 2021

@JustinShenk @WolfByttner Yes, vaegan requires intense patching over trainer. Current trainer seems to be good generalized module. To develop and maintain models like vaegan, we could have another sub directory "advanced_models" and drop such models (like Inverse RL) there with their own custom trainers. Somethnig as traja.generative_models.vaegan.trainer(*args,**kwargs) while __init__ at directory generative_models import modules from subdirectory advanced_models
i will make the changes and update this pr

@JustinShenk
Copy link
Collaborator

Do you have an estimate for when this will be updated @Saran-nns?

@Saran-nns
Copy link
Member Author

This might take a month to update and test the vaegan network under the recent data loader.

@JustinShenk
Copy link
Collaborator

JustinShenk commented May 10, 2021 via email

@JustinShenk
Copy link
Collaborator

@WolfByttner any feedback on the review?

@Saran-nns
Copy link
Member Author

@JustinShenk This is not feature complete and need several compatibility checks. Self reviewed ;)

@JustinShenk JustinShenk marked this pull request as draft July 9, 2021 13:07
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

Successfully merging this pull request may close these issues.

None yet

4 participants