FSCT icon indicating copy to clipboard operation
FSCT copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: '.../FSCT/model/model.pth'

Open AnthoineResea opened this issue 2 years ago • 10 comments

Hi. i'm trying to run the code, but i'm shown this error message: FileNotFoundError: [Errno 2] No such file or directory: 'C:/Claudio/Elaborazioni_FGI/FSCT/model/model.pth'

The folder 'DSCT' in which it is looking for the model.pth file does not exist.

AnthoineResea avatar Oct 25 '22 08:10 AnthoineResea

I solved duplicating the FSCT-main cartel in a new FSCT cartel

AnthoineResea avatar Oct 25 '22 12:10 AnthoineResea

Hi @claudio9551, I am having the exact same error as you, but inexperienced in using python environments. Could you slightly elaborate what you meant by duplicating the FSCT-main cartel in a new FSCT cartel? Here's my terminal if it helps

Screenshot 2022-10-25 143915

msamin23 avatar Oct 25 '22 18:10 msamin23

Hi @claudio9551, I am having the exact same error as you, but inexperienced in using python environments. Could you slightly elaborate what you meant by duplicating the FSCT-main cartel in a new FSCT cartel? Here's my terminal if it helps

Just copy (CTRL-C) the main cartel that you downloaded from the repository and which contains the entire script, (if you didn't rename it, is FSCT-main) and past it( CTRL-V) in the right directory, renaming the folder FSCT (in your case, paste it in "D").

It worked for me

AnthoineResea avatar Oct 26 '22 07:10 AnthoineResea

msamin23

If it works now, do you have other problems in running the code? I've opened another issue (ValueError: need at least one array to concatenate). If you can run the code now, do you have this problem as well?

AnthoineResea avatar Oct 26 '22 07:10 AnthoineResea

claudio9551

Hey, it ran for me, I figured where the problem was, but I did not encounter the ValueError, I had a couple of [WinError 1455] The paging file is too small for this operation to complete, but the script still seems to run fine and churn out the required data

msamin23 avatar Oct 27 '22 17:10 msamin23

claudio9551

Hey, it ran for me, I figured where the problem was, but I did not encounter the ValueError, I had a couple of [WinError 1455] The paging file is too small for this operation to complete, but the script still seems to run fine and churn out the required data

Ok, did you solve your problem like I said? Did you do anything different that can justify the fact that I face the ValueError? What kind of data are you working with? ALS, TLS? What's the point density?

AnthoineResea avatar Oct 27 '22 18:10 AnthoineResea

claudio9551

Hey, it ran for me, I figured where the problem was, but I did not encounter the ValueError, I had a couple of [WinError 1455] The paging file is too small for this operation to complete, but the script still seems to run fine and churn out the required data

Ok, did you solve your problem like I said? Did you do anything different that can justify the fact that I face the ValueError? What kind of data are you working with? ALS, TLS? What's the point density?

I figured it was coded to look at the wrong directory, both of us kept FSCT-main while the original author used FSCT as a directory. I am working with TLS obtained from Riegl VZ-400i, as for the point density, it is actually all over the place. Very confusing as to how to actually derive outputs from this

msamin23 avatar Oct 27 '22 20:10 msamin23

claudio9551

Hey, it ran for me, I figured where the problem was, but I did not encounter the ValueError, I had a couple of [WinError 1455] The paging file is too small for this operation to complete, but the script still seems to run fine and churn out the required data

Ok, did you solve your problem like I said? Did you do anything different that can justify the fact that I face the ValueError? What kind of data are you working with? ALS, TLS? What's the point density?

I figured it was coded to look at the wrong directory, both of us kept FSCT-main while the original author used FSCT as a directory. I am working with TLS obtained from Riegl VZ-400i, as for the point density, it is actually all over the place. Very confusing as to how to actually derive outputs from this

Could we try to share with each other a very small portion of our dataset, to understand if it is a problem related to the type of data, or if somehow the algorithm does not perform on my PC? I am trying with two different datasets, and they both have this concatenate problem I was talking about

AnthoineResea avatar Oct 31 '22 09:10 AnthoineResea

Hi all, Currently FSCT assumes that the FSCT directory is called FSCT. If you git clone the repository, it will be named this by default. It is possible to change the directory name, but you will have to modify the code accordingly.

If you have paging file errors, that means you have run out of RAM and also run out of paging file. If you exceed your RAM capacity, some of the data is offloaded into the paging file (or swap space) on disk. You can increase the size of this if needed. There are guides available elsewhere for how to do this. Keep in mind that the page file is much slower than RAM, so try to avoid using it if you can.

The example datasets included with FSCT should be able to be processed without any issues if you have correctly installed it, and have suitable computing hardware.

The tool has limitations in terms of what data it can process. High resolution datasets like TLS, MLS, or close range photogrammetry tend to work best. The majority of ALS datasets at this time are too low resolution for this tool.

Hopefully that helps. Sean

SKrisanski avatar Oct 31 '22 09:10 SKrisanski

Could we try to share with each other a very small portion of our dataset, to understand if it is a problem related to the type of data, or if somehow the algorithm does not perform on my PC? I am trying with two different datasets, and they both have this concatenate problem I was talking about

I can try sending you a file that I know worked for sure.

msamin23 avatar Oct 31 '22 21:10 msamin23