Giter Site home page Giter Site logo

Comments (7)

debidatta avatar debidatta commented on May 30, 2024

The code in the repository was tested with Python 2 only. You need to call print as a function in Python 3 for this code to work. This fork https://github.com/yueweiyang/syndata-generation/blob/master/dataset_generator.py makes the required changes for the code to run with Python 3.

from syndata-generation.

EthanReid avatar EthanReid commented on May 30, 2024

Thanks for that. I get a new error.
Traceback (most recent call last): File "dataset_generator.py", line 19, in <module> from pb import * ImportError: No module named 'pb'
Do you by chance know whats going on here? I cant find a module named "pb" on google.

from syndata-generation.

debidatta avatar debidatta commented on May 30, 2024

pb refers to the Poisson blending library: https://github.com/yskmt/pb

from syndata-generation.

EthanReid avatar EthanReid commented on May 30, 2024

I really appreciate the help with that, and sorry for the late reply. I fixed the issue with pb and made the necessary changes to run pyblur on python3.

When I run python3 dataset_generator.py root exp i just get Number of background images : 2.

I'm not sure why it is not generating the images. Am I missing something?

from syndata-generation.

EthanReid avatar EthanReid commented on May 30, 2024

Thanks

from syndata-generation.

aeitel avatar aeitel commented on May 30, 2024

Hi,
I wanted to try your code and I have the same problem.
python dataset_generator.py ~/code/self/libs/syndata-generation/demo_data_dir ~/code/self/libs/syndata-generation/output_dir
Number of background images : 2
List of distractor files collected: []

While it does run, it does not write any images in output_dir/images
I tried a few print outs in function create_image_anno, but it seems the method is not entering that function, maybe its because of partial() or some problems with threading?
Any suggestions?
Thanks

from syndata-generation.

aeitel avatar aeitel commented on May 30, 2024

Ok now I got it, with this command it runs.
python dataset_generator.py demo_data_dir/objects_dir output_dir

from syndata-generation.

Related Issues (18)

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.