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

stage-I training problem #56

Open
18398639574 opened this issue Feb 19, 2019 · 6 comments
Open

stage-I training problem #56

18398639574 opened this issue Feb 19, 2019 · 6 comments

Comments

@18398639574
Copy link

Please switch to tf.summary.FileWriter. The interface and behavior is the same; this is just a rename.
Traceback (most recent call last): |ETA: --:--:--
File "stageI/run_exp.py", line 78, in
algo.train()
File "/data/sdv1/WLL/StackGAN/stageI/trainer.py", line 346, in train
num_embedding)
File "/data/sdv1/WLL/StackGAN/misc/datasets.py", line 144, in next_batch
sampled_images = self.transform(sampled_images)
File "/data/sdv1/WLL/StackGAN/misc/datasets.py", line 78, in transform
images[i][w1: w1 + self._imsize, h1: h1 + self._imsize, :]
TypeError: slice indices must be integers or None or have an index method

@akhilvasvani
Copy link

Change images[i][w1: w1 + self._imsize, h1: h1 + self._imsize, :] -->
images[i][int(w1): int(w1 + self._imsize), int(h1): int(h1 + self._imsize), :]

@adigol
Copy link

adigol commented Sep 11, 2019

It runs 6 hours and doesn't stop, is it OK?

@akhilvasvani
Copy link

Well, that depends on what you're looking for. What is your batch size?

@adigol
Copy link

adigol commented Sep 16, 2019

I ran the original code on the birds data(about 600 batches).
I want to run it on the original data and then I'll run it on my data.

@akhilvasvani
Copy link

600 batches? I think you mean Epochs.

For me, it took about a day to train with a batch size of 64 on my NVIDIA 1080 Ti GPU.

If you want to train StackGAN on original data (both images and captions), you need to create your own char-CNN-RNN or skip-thoughts embeddings

@priyanka1220
Copy link

can anyone please provide me the weights of stage1

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