vislearn / dsacstar

DSAC* for Visual Camera Re-Localization (RGB or RGB-D)
BSD 3-Clause "New" or "Revised" License
235 stars 36 forks source link

Getting Runtime Error when running on Windows 10 #8

Closed RameshKamath closed 3 years ago

RameshKamath commented 3 years ago

I was able to build the code to windows on.

I got this Error when running the train_init.py on chess dataset.

i used : python .\train_init.py 7scenes_chess chess --mode 0

RuntimeError:
        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.
        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.

i think this is problem from not linking openmp with -fopenmp flag or some other error in windows.

ebrach commented 3 years ago

Sorry, but I cannot provide support for Windows at the moment.

YaroslavShchekaturov commented 3 years ago

I have solved that by adding this lines image

image

ebrach commented 3 years ago

Awesome, thanks for following up on this!