Comments (2)
Hello!
The .txt
files contain information about the ground truth corners. In evaluation mode, we need the .txt
files to calculate metrics like 3DIoU.
Of course, you may not need the files if you just want to inference on your images, without calculating metrics.
In such situation, you have two methods:
First, you may modify the code.
Remove the lines that read .txt
files, so that self.cors
keeps equals to []
DMH-Net/perspective_dataset.py
Lines 68 to 71 in 2d2a346
Change the line to
return self.getItem(self.img_fnames[idx], None)
DMH-Net/perspective_dataset.py
Line 101 in 2d2a346
And the most important, modify the
getItem
function,DMH-Net/perspective_dataset.py
Line 103 in 2d2a346
remove all code lines that requires the
cor
variable to calculate. Those may include:DMH-Net/perspective_dataset.py
Lines 325 to 370 in 2d2a346
and delete the affected keys from the returned dict, which may include
cor
, height
, *Labels
, lines
, peaks
DMH-Net/perspective_dataset.py
Lines 372 to 385 in 2d2a346
And, change this line to
r = {}
DMH-Net/e2plabel/e2plabelconvert.py
Line 44 in 2d2a346
I think those may enough, but I cannot guarantee it. The principal is to remove all place that use the
cor
variable, so if you meets with any error about not finding the cor
, just feel free to remove it.
Or, you may have another option to make pesudo .txt
files. The example is:
85 175
85 349
376 142
376 383
710 186
710 336
878 196
878 325
In which each lines represents the coordinate of a corner point in the image. Note that if you make pesudo .txt
files, the metrics output of our code is totally meaningless.
from dmh-net.
Thank you for your kind reply.
I modified the code and it works fine!
from dmh-net.
Related Issues (6)
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 dmh-net.