-
Notifications
You must be signed in to change notification settings - Fork 75
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
TF2 #3
Comments
This, or a pytorch version would both be super great to have. TF 1.4 is kind of a bummer :(. |
Is there a Pytorch implementation available? Tensorflow is really hard to work with now. If anyone has worked or wants to collaborate on open-sourcing a Pytorch version of this, lemme know! I will be interested :) |
Thank you all for the suggestions, and I agree that TF2 or PyTorch version of DoppelGANger would be very useful. Unfortunately, we do not have that so far. If/When you have a TF2 or PyTorch implementation, please let me know I'll add a link to it. Thank you! |
did someone managed to update it to TF2? |
Hi, when I installed TensorFlow 1.4.0, pycharm warned that python 3.5 has reached its end-of-life date and it is no longer supported in pycharm. The DoppelGANger seemingly not worked normally. Is there any solution? |
@chameleonzz Could you please post error messages or screenshots of the errors? |
Thank you for your answer.
At first, I tried to install tf 1.4.0 with python 3.5. However, pycharm showed the warning as following.
Then, I tried to install tf 1.4.0 with python 3.6. And I tried to run example_training. But the gan_task.py warns as follows.
I also looked for some ways to solve the problem "Unresolved reference '*' ". But all of them did not work.
At last, I tried install tf-cpu-2.5.0 with python 3.8.12, it also had the same problem.
I wonder if I did something wrong? Or maye the tf version and python verion should be updated to run the DoppelGANger?
At 2022-07-12 10:19:24, "Zinan Lin" ***@***.***> wrote:
@chameleonzz Could you please post error messages or screenshots of the errors?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi @chameleonzz |
It is feasible for DG with TF 2.1.0 and Python 3.7. However, when I tried to run the code gan_task.py of 'example_training', there was a warning "unresolved reference 'gan' ". I tried to pip install gan, but it seems no corresponding package names gan. How to solve the problem? Thank you for your help. |
@chameleonzz can you share more information? |
Thank you for your answer. I know how to solve the problem finally. If I want to use the DoppelGANger, there are three main steps. Firstly, a virtual environment is needed to be built, such as tf 2.1.0 + python 3.7. Secondly, pip some packages, such as gan, GPUTaskScheduler and Tensorflow-privacy. Gan package can be downloaded in DoppelGANger Github. Those packages can be downloaded in Github and installed with the command 'pip install -e path/package_file_name. Thirdly, open the entire DoppelGANger(DG) item with pycharm. |
Any time :) |
Thank @yzion for the help and the answers! @chameleonzz Re: how to decide the attributes and features for your own data. The definition of features and attributes can be very flexible, depending on the aspects of the data you want DoppelGANger to capture. More specifically, let's take a simple example. Let's say your original data is a table in the following format.
You can treat any (even several) columns as attributes (or metadata), and group the rows according to those attributes, and treat the rest of the columns as features (or time-series). For example, you can choose to treat ColumnA and ColumnB as attributes, and ColumnC as the feature. You will get 2 samples: {attributes=(1,2), features=(3,4)}, {attributes=(2,2), features=(3,5,6)}. DoppelGANger (ideally) will be able to learn the temporal correlations of features that are associated with the same attribute (i.e., (3,4) in the first sample, and (3,5,6) in the second sample). But you can also choose to treat only ColumnA as the attributes, or any other combinations of the columns you want. In short, how to choose features/attributes depends on the context of your application, and which part you want DoppelGANger to model as temporal correlations. Hope this clarification helps! |
By the way, for future readers of this thread: If you are looking for TF2 implementation of DoppelGANger, you can look at https://github.com/fjxmlzn/DoppelGANger/tree/TF2 by @yzion If you are looking for PyTorch implementation of DoppelGANger, you can look at https://synthetics.docs.gretel.ai/en/stable/models/timeseries_dgan.html#timeseries-dgan by Gretel AI. |
Recently, I met with another problem. Q2: When I know the attributes and features of my datasets, how to generate the four files including data_attribute_output.pkl, data_feature_output.pkl, data_test.npz and data_train.npz. Whether another codes need to be written to achieve this work? At last, thank you for your continued patient answers. |
Re: Q1. Can you share the content of worker_generate_data.log? Also, after running example_training/main.py, you should see another worker.log in these sub-folders. Did you see them? Re: Q2. Yes, another code needs to be written. You can refer to the README for an example of what those files should look like (after 'Let's look at a concrete example'). I will soon create an example of how these files were created for the datasets in our paper and share it here. |
@chameleonzz No, there should be other files, and the content of worker.log or worker_generate_data.log should be more than this line. Could you please delete |
Thanks for your answer. |
Could you please paste here the console (i.e., terminal) output? |
@chameleonzz |
For the previous problem, please refer to #30. For this issue, would you mind creating a new issue? We can discuss it there. This is a different problem. |
Recently, the example_traning\main.py was re-run on a computer with intel i7-11800H CPU @2.30 GHz and 64 GB memory. It cost 5740 minutes to generate the results file named ‘dataset-google,epoch-400,run-0,sample-len-1’. And the results file named 'dataset-google,epoch-400,run-0,sample-len-5' is generating now?
|
Hi I just want to know whether you are perhaps planning on releasing a version for Tensor Flow 2, it would probably be around for the next few years and I think this is an interesting repository that could be used more in the near future. Thanks for your work!
The text was updated successfully, but these errors were encountered: