Comments (7)
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.
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.
pb refers to the Poisson blending library: https://github.com/yskmt/pb
from syndata-generation.
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.
Thanks
from syndata-generation.
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.
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)
- could you please share some example training data and folders? HOT 1
- "distractor_files" variable referenced before assignment HOT 1
- ## local variable 'attempt' referenced before assignment HOT 5
- How did you get the .pbm pictures? HOT 2
- 3D Rotation HOT 1
- Error in line 451. unbound local error HOT 2
- create_mask function is not defined HOT 3
- mask process HOT 8
- ".pbm" and "Foreground/Background segmentation:" HOT 4
- error discription
- Do you mean the masks like "NP123.pbm" in demo_data_dir/robjects_dir/honey_bunches ?
- what is the dataset Type? HOT 3
- background images HOT 2
- unable to reproduce results HOT 3
- Applicability of code in 2D images and backgrounds
- Only uses one background at a time
- Demo Data Directory Structure
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 syndata-generation.