42x00 / p3i Goto Github PK
View Code? Open in Web Editor NEWPytorch implementation for Perspective Plane Program Induction from a Single Image (P3I).
Home Page: http://p3i.csail.mit.edu/
License: MIT License
Pytorch implementation for Perspective Plane Program Induction from a Single Image (P3I).
Home Page: http://p3i.csail.mit.edu/
License: MIT License
In the function visualize_and_dump
in p3i\utils\vis.py
instead of generating the output folder with:
os.system(f'mkdir -p {args.output_dir}')
try to use the available dedicated function os.mkdirs
:
os.makedirs(args.output_dir, exist_ok=True)
On my Windows 10 machine the former command had the side effect of generating a folder named '-p', as I think on Windows the command mkdir
does not accept any parameter (https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mkdir).
In the installation step, the package 'tqdm' is missing in the last step.
Instead of:
conda install -y pillow opencv
it should be:
conda install -y pillow opencv tqdm
This package is used in the file program/p3i.py
.
I have went through all the code and still not found some code like loss.backward(). So how does p3i do the gradient descend?
In the class P3IOptions
, the default value for the argument output_dir
is currently:
./results
but should be:
results
With the former, the commands os.path.join(args.output_dir, ...)
in the function visualize_and_dump
(in p3i\utils\vis.py
) break on Windows 10, as ./results
is a Unix path not valid on Windows.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.