Comments (13)
Thanks for pointing that out! I haven't tried training the model MS-COCO. Let me know if you face further issues.
from text-to-image.
I fixed the issue by creating the folder 'tvs' in folder MSCOCO-data.
mkdir -p MSCOCO-data/tvs
There was another error at line, which shold be replaced with following line
for i in range(batch_no*batch_size, (batch_no+1)*batch_size):
from text-to-image.
I have done with pre-processing using MS-COCO dataset.
But
When i'am trying to Run (Train .py) By using MS-COCO dataset . I'am facing the below errors.
please provide suggestions to solve those errors.
ERRORS:
Traceback (most recent call last):
File "/home/mcis-lap-40/raviwork/Tensorflow_Models/text-to-image-generation/train.py", line 227, in
main()
File "/home/mcis-lap-40/raviwork/Tensorflow_Models/text-to-image-generation/train.py", line 105, in main
loaded_data)
TypeError: 'NoneType' object is not iterable
Process finished with exit code 1
from text-to-image.
|-- train2014
| |-- COCO_train2014_000000000009.jpg
| |-- COCO_train2014_000000000025.jpg
can you please tell me what is "| |-- COCO_train2014_000000000009.jpg
| |-- COCO_train2014_000000000025.jpg"
in tain2014 folder
from text-to-image.
@dheeru999 : Can you post the below two lines :
File "/home/mcis-lap-40/raviwork/Tensorflow_Models/text-to-image-generation/train.py", line 227
File "/home/mcis-lap-40/raviwork/Tensorflow_Models/text-to-image-generation/train.py", line 105
The error (TypeError: 'NoneType' object is not iterable) implies that your are unable to load the data. So, just after loading the data, just print the size of the variable. Also, check the folder structure and folder names.
I don't have the data now. So, I can't tell you about the below images.
| |-- COCO_train2014_000000000009.jpg
| |-- COCO_train2014_000000000025.jpg
from text-to-image.
I don't have the data now. So, I can't tell you about the below images.
| |-- COCO_train2014_000000000009.jpg
| |-- COCO_train2014_000000000025.jpg
From where u downloaded the data , Can u provide the link.
"In place of this can we load train 2014 images "
from text-to-image.
Have u trained on MS-COCO data set,did u got any result.
Can u provide us some suggestions that what have to be modified in the original code** for MS-COCO dataset.
from text-to-image.
I have trained on MS-COCO dataset and I was able to run it successfully. I don't have the result form now. Download the data from MS-COCO official page as http://mscoco.org/dataset/#download
And then, put data, annotations as mentioned before.
The contents of MSCOCO-data/ folder are as follows:
MSCOCO-data/
|--tvs
|-- annotations
| |-- captions_train2014.json
| |-- captions_val2014.json
| |-- instances_train2014.json
| |-- instances_val2014.json
| |-- person_keypoints_train2014.json
| |-- person_keypoints_val2014.json
|-- meta_train.pkl
|-- train2014
| |-- COCO_train2014_000000000009.jpg
| |-- COCO_train2014_000000000025.jpg
from text-to-image.
Thank U so much for rersponding. Data paths are perfectly set,but still not able to run .
Do u have the modified code. If possible can u please share with us.
from text-to-image.
If you download the dataset properly and put them in a folders,you will not get those image loaded errors.
from text-to-image.
After doing all the steps which you have discussed above, I'am facing the error called "ImageList"
Process has been started but stopped for 1st iteration. Please provide some suggestions.
d1 1.63985
d2 0.371909
d3 0.157891
D 2.16965
Traceback (most recent call last):
File "/home/Tensorflow_Models/text-to-image-generation/train.py", line 250, in
main()
File "home/Tensorflow_Models/text-to-image-generation/train.py", line 139, in main
print "LOSSES", d_loss, g_loss, batch_no, i, len(loaded_data['image_list']) / args.batch_size
KeyError: 'image_list'
LOSSES 2.16965 0.000277596 0 0
Please respond to this.
from text-to-image.
I have done with pre-processing using MS-COCO dataset.
But
When i'am trying to Run (Train .py) By using MS-COCO dataset . I'am facing the below errors.please provide suggestions to solve those errors.
ERRORS:
Traceback (most recent call last):
File "/home/mcis-lap-40/raviwork/Tensorflow_Models/text-to-image-generation/train.py", line 227, in
main()
File "/home/mcis-lap-40/raviwork/Tensorflow_Models/text-to-image-generation/train.py", line 105, in main loaded_data)
TypeError: 'NoneType' object is not iterableProcess finished with exit code 1
I faced the same issue.Solved by using the below command for training:
python train.py --data_set="mscoco" --data_dir=Data/MSCOCO-data
from text-to-image.
After doing all the steps which you have discussed above, I'am facing the error called "ImageList"
Process has been started but stopped for 1st iteration. Please provide some suggestions.
d1 1.63985
d2 0.371909
d3 0.157891
D 2.16965
Traceback (most recent call last):
File "/home/Tensorflow_Models/text-to-image-generation/train.py", line 250, in
main()
File "home/Tensorflow_Models/text-to-image-generation/train.py", line 139, in main
print "LOSSES", d_loss, g_loss, batch_no, i, len(loaded_data['image_list']) / args.batch_size
KeyError: 'image_list'
LOSSES 2.16965 0.000277596 0 0Please respond to this.
I faced the same issue.
Solved by replacing the line print "LOSSES", d_loss, g_loss, batch_no, i, len(loaded_data['image_list']) / args.batch_size with *print "LOSSES", d_loss, g_loss, batch_no, i
from text-to-image.
Related Issues (20)
- Tensorflow error HOT 1
- Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. HOT 5
- Same error while generating as well as training HOT 3
- From merging shape 0 with other shapes. for 'h3_concat/concat_dim' (op: 'Pack') with input shapes: [8,4,4,512], [8,4,4,256]. HOT 4
- Pretrained Model HOT 1
- Model wasn't saved corre
- TF error reuirements
- No such file or directory: 'Data/meta_train.pkl'
- data_loader.py
- generate_thought_vectors.py HOT 2
- From merging shape 0 with other shapes. for 'concat/concat_dim' (op: 'Pack') with input shapes: [64,100], [64,256] HOT 2
- ValueError: Tensor("moments/moments_1/mean:0", shape=(512,), dtype=float32) must be from the same graph as Tensor("g_bn0/g_bn0/moments/moments_1/mean/ExponentialMovingAverage:0", shape=(512,), dtype=float32_ref).
- No such file or directory: 'Data/skipthoughts/uni_skip.npz.pkl' HOT 1
- pickle error HOT 9
- Data Loader HOT 1
- generating images error HOT 1
- DataLossError (see above for traceback): Unable to open table file Data\Models: Unknown: NewRandomAccessFile failed to Create/Open: Data\Models : Access is denied.
- Did you mean to set reuse=tf.AUTO_REUSE in VarScope?
- Erorr for bi_skip.npz and uni_skip.npz => BadZipFile: File is not a zip file HOT 2
- how much time does dataloader.py take
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from text-to-image.