question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

directory existance issues

See original GitHub issue

trying to train my first model. using png images and all default settings. I get the error **FileExistsError: [Errno 17] File exists: 'plots'** okay… so let’s remove that folder. same error. Here’s the full trace:

File "/home/xxx/anaconda3/envs/imclass/bin/transfer", line 11, in <module>
    load_entry_point('transfer==0.36', 'console_scripts', 'transfer')()
  File "/home/xxx/anaconda3/envs/imclass/lib/python3.6/site-packages/transfer-0.36-py3.6.egg/transfer/__main__.py", line 123, in main
    project = train_model(project, final = args.final, last = args.last)
  File "/home/xxx/anaconda3/envs/imclass/lib/python3.6/site-packages/transfer-0.36-py3.6.egg/transfer/model.py", line 75, in train_model
    os.makedirs(plot_path)
  File "/home/xxx/anaconda3/envs/imclass/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] File exists: 'plots'

This also prints out when it begins to run, but I don’t think it’s related at all:

lib/python3.6/site-packages/h5py-2.7.1-py3.6-linux-x86_64.egg/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters

though it seems like a reasonable thing to fix.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
matthew-sochor-zzcommented, Feb 14, 2018

@mpilosov I think I fixed your issue in https://github.com/matthew-sochor/transfer/commit/804487a22d89c35565c1f2238664313d1335f5d8

I pushed up to version 0.37 on PyPi, please give it another try and let me know if this resolves things for you. And again, thanks for the issue and I hope this works for you.

0reactions
mpilosovcommented, Feb 14, 2018

I’m installing from source using python setup.py install using a fresh conda environment and would mention that build fails because flask isn’t in your dependency list.

having path-completion in the setup would help as well, I did have to constantly check the configure file to ensure everything was entered right (found a typo, fixed it), now it is finally running. I see a lot of val_categorical_accuracy did not improve so I’m not sure how well it is going, and am excited to see the end result…

thanks for the fix! hope this turns into something useful. I’m training it on some synthetic image data that should be very easy for it to learn. starting with a small batch (likely too small) just to make sure the algorithm completes. If I add more images to the directories, simply doing transfer --run will pick up where it left off or restart the training?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix a directory that is there but doesn't exist? - Super User
I get many of these from extraction of archives. This method works for me. Open Command Prompt and type the following in pressing...
Read more >
No need to check if a directory exists to create it #12103 - GitHub
In the first example, please remove the Exists() checking because CreateDirectory() is a safe method. It won't create a folder if it exists....
Read more >
Directory.Exists returns true when directory is not present
The problem is that the Directory.Exists line returns true, when I can't see the directory through command line and Windows Explorer.
Read more >
gitaly warnings: "no alternates directory exists" - GitLab
We have a lot of warnings in our gitaly log which say "no alternates directory exists", e.g..
Read more >
The file or folder already exists in OneDrive - Microsoft Support
After deselecting a folder from the list of folders you choose to sync, you may see an error: "The file or folder already...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found