-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this project support running on win10 system? #11
Comments
Nothing, this should work on Windows. |
This is my first time using the git command(my system is Win10). After I download git software, I run Errors logged to C:\Users\x\BrainMaGe.git\lfs\logs\20211105T170409.6038543.log |
Hey, I am able to run the same instructions: (base) PS C:\Users\tester> cd .\Downloads\test_brainmage\
(base) PS C:\Users\tester\Downloads\test_brainmage> git clone https://github.com/CBICA/BrainMaGe.git
Cloning into 'BrainMaGe'...
remote: Enumerating objects: 1009, done.
remote: Counting objects: 100% (291/291), done.
remote: Compressing objects: 100% (195/195), done.
remote: Total 1009 (delta 170), reused 183 (delta 96), pack-reused 718
Receiving objects: 100% (1009/1009), 241.65 KiB | 3.36 MiB/s, done.
Resolving deltas: 100% (614/614), done.
(base) PS C:\Users\tester\Downloads\test_brainmage> cd BrainMaGe
(base) PS C:\Users\tester\Downloads\test_brainmage\BrainMaGe> git lfs pull
(base) PS C:\Users\tester\Downloads\test_brainmage\BrainMaGe> conda env create -f requirements.yml
Collecting package metadata (repodata.json): done Have you installed Git-LFS? If not, can you install and try the command once again? |
I downloaded git-lfs and executed the following command at Git Bash: x@DESKTOP-xxx MINGW64 ~/BrainMaGe (master) Downloading LFS objects: 0% (0/1), 38 MB | 14 KB/s Error updating the git index: (0/1), 65 MB | 13 KB/s Errors logged to xxx\BrainMaGe.git\lfs\logs\20211106T140903.7362199.log I googled the error and the answer is this: git-lfs/git-lfs#3457 It is a pity that I am not able to solve it. I think the operation mode of your project is similar to PyRadiommics, but it is difficult for me as a novice to operate Git, so I may have to find other ways to remove the skull. |
You could try using wget directly: cd BrainMaGe
wget https://github.com/CBICA/BrainMaGe/raw/master/BrainMaGe/weights/resunet_ma.pt ./BrainMaGe/weights
wget https://github.com/CBICA/BrainMaGe/raw/master/BrainMaGe/weights/resunet_multi_4.pt ./BrainMaGe/weights Example: (base) user@cbica-bakas-pc06:/mnt/c/Users/user/Downloads$ wget https://github.com/CBICA/BrainMaGe/raw/master/BrainMaGe/weights/resunet_ma.pt .
--2021-11-06 09:57:24-- https://github.com/CBICA/BrainMaGe/raw/master/BrainMaGe/weights/resunet_ma.pt
Resolving github.com (github.com)... 140.82.112.4
Connecting to github.com (github.com)|140.82.112.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://media.githubusercontent.com/media/CBICA/BrainMaGe/master/BrainMaGe/weights/resunet_ma.pt [following]
--2021-11-06 09:57:24-- https://media.githubusercontent.com/media/CBICA/BrainMaGe/master/BrainMaGe/weights/resunet_ma.pt
Resolving media.githubusercontent.com (media.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.108.133, ...
Connecting to media.githubusercontent.com (media.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 33215195 (32M) [application/octet-stream]
Saving to: ‘resunet_ma.pt’
resunet_ma.pt 100%[==========================================================>] 31.68M 13.3MB/s in 2.4s
2021-11-06 09:57:27 (13.3 MB/s) - ‘resunet_ma.pt’ saved [33215195/33215195]
--2021-11-06 09:57:27-- http://./
Resolving . (.)... failed: No address associated with hostname.
wget: unable to resolve host address ‘.’
FINISHED --2021-11-06 09:57:29--
Total wall clock time: 5.0s
Downloaded: 1 files, 32M in 2.4s (13.3 MB/s) This should give you the model weights without using LFS. |
I'm trying to get this installed on windows after everything worked fine on linux, but the outcome is quite different. In my case, it is the requirements.yml that fails. A lot of the packages aren't found on conda defaults channel, but when I added conda-forge the solve became intractable, and when I moved those packages to pip then I got hundreds of conflicts. I already re-created the yml file without the build-specific info, but that didn't help. Any thoughts appreciated! |
Can you please give details on what you have tried thus far? It would be ideal if you could provide specific commands and their associated outputs. |
Certainly, yes. OK so I have windows 10 with anaconda installed, using anaconda prompt.
That's as far as I got. It seems like something pretty basic (and possibly simple) must be wrong, because everything went so smoothly on linux. If you can spot anything that would be awesome, this tool worked great on linux but my colleagues can only use it on windows. |
Can you send the |
@Geeks-Sid, I am getting the following failure: (base) PS C:\Projects> git clone https://github.com/CBICA/BrainMaGe.git
Cloning into 'BrainMaGe'...
remote: Enumerating objects: 1230, done.
remote: Counting objects: 100% (143/143), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 1230 (delta 134), reused 125 (delta 125), pack-reused 1087
Receiving objects: 100% (1230/1230), 2.40 MiB | 8.49 MiB/s, done.
Resolving deltas: 100% (772/772), done.
(base) PS C:\Projects> cd .\BrainMaGe\
(base) PS C:\Projects\BrainMaGe> git lfs pull
(base) PS C:\Projects\BrainMaGe> 2), 66 MB | 9.2 MB/s
(base) PS C:\Projects\BrainMaGe> conda env create -f requirements.yml
Collecting package metadata (repodata.json): done
Solving environment: failed
ResolvePackageNotFound:
- gevent==1.4.0=py36h7b6447c_0
- curl==7.69.1=hbc83047_0
- libxcb==1.13=h1bed415_1
- zstd==1.4.4=h0b5b093_3
- numexpr==2.7.1=py36h423224d_0
- pycrypto==2.6.1=py36h7b6447c_10
- wrapt==1.12.1=py36h7b6447c_1
- fontconfig==2.13.0=h9420a91_0
- ncurses==6.2=he6710b0_1
- glib==2.63.1=h5a9c865_0
- libuuid==1.0.3=h1bed415_2
- scikit-learn==0.23.1=py36h423224d_0
- sqlalchemy==1.3.17=py36h7b6447c_0
- lxml==4.5.1=py36hefd8a0e_0
- pytables==3.6.1=py36h71ec239_0
- mpc==1.1.0=h10f8cd9_1
- ujson==1.35=py36h14c3975_0
- readline==8.0=h7b6447c_0
- hdf5==1.10.4=hb1b8bf9_0
- cairo==1.14.12=h8948797_3
- libffi==3.2.1=hd88cf55_4
- pyrsistent==0.16.0=py36h7b6447c_0
- ninja==1.9.0=py36hfd86e86_0
- sip==4.19.8=py36hf484d3e_0
- jbig==2.1=hdba287a_0
- cython==0.29.20=py36he6710b0_0
- qt==5.9.7=h5867ecd_1
- yaml==0.1.7=had09818_2
- pywavelets==1.1.1=py36h7b6447c_0
- libssh2==1.9.0=h1ba5d50_1
- pycurl==7.43.0.5=py36h1ba5d50_0
- mkl-service==2.3.0=py36he904b0f_0
- ptyprocess==0.6.0=py36_0
- krb5==1.17.1=h173b8e3_0
- wurlitzer==2.0.0=py36_0
- bzip2==1.0.8=h7b6447c_0
- pcre==8.43=he6710b0_0
- llvmlite==0.32.1=py36hd408876_0
- greenlet==0.4.16=py36h7b6447c_0
- libarchive==3.4.2=h62408e4_0
- numpy-base==1.18.5=py36hde5b4d6_0
- immutables==0.14=py36h7b6447c_0
- gstreamer==1.14.0=hb453b48_1
- bitarray==1.2.2=py36h7b6447c_0
- libedit==3.1.20191231=h7b6447c_0
- cytoolz==0.10.1=py36h7b6447c_0
- astropy==4.0.1.post1=py36h7b6447c_1
- gst-plugins-base==1.14.0=hbbd80ab_1
- secretstorage==3.1.2=py36_0
- gmp==6.1.2=h6c8ec71_1
- liblief==0.10.1=he6710b0_0
- matplotlib-base==3.2.2=py36hef1b27d_0
- libpng==1.6.37=hbc83047_0
- markupsafe==1.1.1=py36h7b6447c_0
- python==3.6.10=hcf32534_1
- pyqt==5.9.2=py36h05f1152_2
- cffi==1.14.0=py36h2e261b9_0
- pycosat==0.6.3=py36h7b6447c_0
- openssl==1.1.1g=h7b6447c_0
- pytorch==1.5.1=py3.6_cuda9.2.148_cudnn7.6.3_0
- mkl_fft==1.1.0=py36h23d657b_0
- numpy==1.18.5=py36ha1c710e_0
- unixodbc==2.3.7=h14c3975_0
- mistune==0.8.4=py36h7b6447c_0
- zlib==1.2.11=h7b6447c_3
- icu==58.2=he6710b0_3
- _anaconda_depends==2020.02=py36_0
- tk==8.6.10=hbc83047_0
- bottleneck==1.3.2=py36heb32a55_1
- zeromq==4.3.1=he6710b0_3
- pango==1.42.4=h049681c_0
- pyodbc==4.0.30=py36he6710b0_0
- libtiff==4.1.0=h2733197_1
- libsodium==1.0.16=h1bed415_0
- msgpack-python==1.0.0=py36hfd86e86_1
- cryptography==2.9.2=py36h1ba5d50_0
- expat==2.2.6=he6710b0_0
- scipy==1.4.1=py36h0b6359f_0
- ripgrep==11.0.2=he32d670_0
- fastcache==1.1.0=py36h7b6447c_0
- tbb==2020.0=hfd86e86_0
- rtree==0.9.4=py36_1
- xz==5.2.5=h7b6447c_0
- libspatialindex==1.9.3=he6710b0_0
- libxml2==2.9.10=he19cac6_1
- libgcc-ng==9.1.0=hdf63c60_0
- graphite2==1.3.13=h23475e2_0
- libstdcxx-ng==9.1.0=hdf63c60_0
- regex==2020.5.14=py36h7b6447c_0
- typed-ast==1.4.1=py36h7b6447c_0
- freetype==2.10.2=h5ab3b9f_0
- blosc==1.19.0=hd408876_0
- ld_impl_linux-64==2.33.1=h53a641e_7
- lazy-object-proxy==1.5.0=py36h7b6447c_0
- libcurl==7.69.1=h20c2e04_0
- snappy==1.1.7=hbae5bb6_3
- libtool==2.4.6=h7b6447c_5
- ruamel_yaml==0.15.87=py36h7b6447c_0
- lz4-c==1.9.2=he6710b0_0
- patchelf==0.11=he6710b0_0
- brotlipy==0.7.0=py36h7b6447c_1000
- sqlite==3.32.3=h62c20be_0
- scikit-image==0.16.2=py36h0573a6f_0
- get_terminal_size==1.0.0=haa9412d_0
- gmpy2==2.0.8=py36h10f8cd9_2
- kiwisolver==1.2.0=py36hfd86e86_0
- tornado==6.0.4=py36h7b6447c_1
- jpeg==9b=h024ee3a_2
- harfbuzz==1.8.8=hffaf4a1_0
- mpfr==4.0.1=hdf1c602_3
- mkl_random==1.1.1=py36h0573a6f_0
- numba==0.49.1=py36h0573a6f_0
- pyyaml==5.3.1=py36h7b6447c_0
- mkl==2020.1=217
- pyzmq==18.1.1=py36he6710b0_0
- psutil==5.7.0=py36h7b6447c_0
- statsmodels==0.11.1=py36h7b6447c_0
- fribidi==1.0.5=h7b6447c_0
- py-lief==0.10.1=py36h403a769_0
- intel-openmp==2020.1=217
- lzo==2.10=h7b6447c_2
- pillow==7.1.2=py36hb39fc2d_0
- pandas==1.0.5=py36h0573a6f_0
- libgfortran-ng==7.3.0=hdf63c60_0
- pixman==0.38.0=h7b6447c_0
- h5py==2.10.0=py36h7918eee_0
- dbus==1.13.14=hb2f20db_0 |
Yes here it is.
|
OK finally managed to puzzle through it. I removed all the version numbers by regexp search and replace, removed about 18 packages not found on windows anaconda from the requirements, and moved 2 that could be found only on pip, from conda to pip. Then once the env created, for |
Hi @jeb2112, this is tremendously useful information. Do you mind putting this as a pull request so that we can record the effort you've put into this as well as ensure others benefit from it? Thank you! |
Sorry I'm not actually sure how to make a pull request, I'm sort of a beginner user of github. But here is the modified requirements.yml file, and then the version number changes in setup.py follow from whatever gets downloaded. And I'm not sure if removing packages may have changed anything, I am only using the brain_mage_single_run script.
|
Thanks! Here are the steps for you to put in a PR:
|
OK I see, I tried that and I think it worked. |
What changes would be required if the project were to run on Windows 10?
The text was updated successfully, but these errors were encountered: