GithubHelp home page GithubHelp logo

Comments (13)

paarthneekhara avatar paarthneekhara commented on August 22, 2024 1

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.

nitish11 avatar nitish11 commented on August 22, 2024

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.

dheeru999 avatar dheeru999 commented on August 22, 2024

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.

dheeru999 avatar dheeru999 commented on August 22, 2024

|-- 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.

nitish11 avatar nitish11 commented on August 22, 2024

@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.

dheeru999 avatar dheeru999 commented on August 22, 2024

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.

dheeru999 avatar dheeru999 commented on August 22, 2024

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.

nitish11 avatar nitish11 commented on August 22, 2024

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.

dheeru999 avatar dheeru999 commented on August 22, 2024

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.

anushaGundapaneni avatar anushaGundapaneni commented on August 22, 2024

If you download the dataset properly and put them in a folders,you will not get those image loaded errors.

from text-to-image.

anushaGundapaneni avatar anushaGundapaneni commented on August 22, 2024

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.

madmalar avatar madmalar commented on August 22, 2024

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

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.

madmalar avatar madmalar commented on August 22, 2024

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.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.